ipykernel の API リファレンス
ipykernel (ipython/ipykernel) の公開 API 197 件 —— クラス 36、関数 26、メソッド 135。実際のソースを静的解析して抽出した正確なシグネチャを掲載しています。
リポジトリ: ipython/ipykernel
| 種別 | 件数 |
|---|---|
| クラス | 36 |
| 関数 | 26 |
| メソッド | 135 |
API 一覧
class
hatch_build.CustomHookThe IPykernel build hook.
method
hatch_build.CustomHook.initialize(version, build_data)Initialize the hook.
func
ipykernel._eventloop_macos.C(classname)get an ObjC Class by name
func
ipykernel._eventloop_macos.n(name)create a selector name (for ObjC methods)
func
ipykernel._eventloop_macos.stop(timer=None, loop=None)Callback to fire when there's input to be read
class
ipykernel.comm.comm.BaseCommThe base class for comms.
class
ipykernel.comm.comm.CommClass for communicating between a Frontend and a Kernel
class
ipykernel.comm.manager.CommManagerA comm manager.
method
ipykernel.comm.manager.CommManager.comm_open(stream, ident, msg)Handler for comm_open messages
class
ipykernel.compiler.XCachingCompilerA custom caching compiler.
method
ipykernel.compiler.XCachingCompiler.get_code_name(raw_code, code, number)Get the code name.
func
ipykernel.compiler.get_file_name(code)Get a file name.
func
ipykernel.compiler.get_tmp_directory()Get a temp directory.
func
ipykernel.compiler.get_tmp_hash_seed()Get a temp hash seed.
func
ipykernel.compiler.murmur2_x86(data, seed)Get the murmur2 hash.
func
ipykernel.connect.connect_qtconsole(connection_file:str | None=None, argv:list[str] | None=None) -> Popen[Any]Connect a qtconsole to the current kernel.
func
ipykernel.connect.get_connection_info(connection_file:str | None=None, unpack:bool=False) -> str | dict[str, Any]Return the connection information for the current Kernel.
class
ipykernel.control.ControlThreadA thread for a control channel.
class
ipykernel.debugger.DebuggerThe debugger class.
method
ipykernel.debugger.Debugger.accept_variable(variable_name)Accept a variable by name.
method
ipykernel.debugger.Debugger.attach(message)Handle an attach message.
method
ipykernel.debugger.Debugger.debugInfo(message)Handle a debug info message.
method
ipykernel.debugger.Debugger.dumpCell(message)Handle a dump cell message.
method
ipykernel.debugger.Debugger.handle_stopped_event()Handle a stopped event.
method
ipykernel.debugger.Debugger.modules(message)Handle a modules message.
method
ipykernel.debugger.Debugger.process_request(message)Process a request.
method
ipykernel.debugger.Debugger.setBreakpoints(message)Handle a set breakpoints message.
method
ipykernel.debugger.Debugger.source(message)Handle a source message.
method
ipykernel.debugger.Debugger.stackTrace(message)Handle a stack trace message.
method
ipykernel.debugger.Debugger.start()Start the debugger.
method
ipykernel.debugger.Debugger.stop()Stop the debugger.
method
ipykernel.debugger.Debugger.variables(message)Handle a variables message.
class
ipykernel.debugger.DebugpyClientA client for debugpy.
method
ipykernel.debugger.DebugpyClient.connect_tcp_socket()Connect to the tcp socket.
method
ipykernel.debugger.DebugpyClient.disconnect_tcp_socket()Disconnect from the tcp socket.
method
ipykernel.debugger.DebugpyClient.get_host_port()Get the host debugpy port.
method
ipykernel.debugger.DebugpyClient.receive_dap_frame(frame)Receive a dap frame.
method
ipykernel.debugger.DebugpyClient.send_dap_request(msg)Send a dap request.
class
ipykernel.debugger.DebugpyMessageQueueA debugpy message queue.
method
ipykernel.debugger.DebugpyMessageQueue.get_message()Get a message from the queue.
method
ipykernel.debugger.DebugpyMessageQueue.put_tcp_frame(frame)Put a tcp frame in the queue.
class
ipykernel.debugger.VariableExplorerA variable explorer.
method
ipykernel.debugger.VariableExplorer.track()Start tracking.
method
ipykernel.debugger.VariableExplorer.untrack_all()Stop tracking.
class
ipykernel.displayhook.ZMQShellDisplayHookA displayhook subclass that publishes data using ZeroMQ.
method
ipykernel.displayhook.ZMQShellDisplayHook.set_parent(parent)Set the parent header.
method
ipykernel.displayhook.ZMQShellDisplayHook.start_displayhook()Start the display hook.
method
ipykernel.displayhook.ZMQShellDisplayHook.write_output_prompt()Write the output prompt.
func
ipykernel.eventloops.decorator(func)Integration registration decorator.
func
ipykernel.eventloops.enable_gui(gui, kernel=None)Enable integration with a given GUI
func
ipykernel.eventloops.exit_loop()fall back to main loop
func
ipykernel.eventloops.loop_asyncio_exit(kernel)Exit hook for asyncio
func
ipykernel.eventloops.loop_cocoa_exit(kernel)Exit the cocoa loop.
func
ipykernel.eventloops.loop_gtk3_exit(kernel)Exit the gtk3 loop.
func
ipykernel.eventloops.loop_gtk_exit(kernel)Exit the gtk loop.
func
ipykernel.eventloops.loop_tk(kernel)Start a kernel with the Tk event loop.
func
ipykernel.eventloops.loop_tk_exit(kernel)Exit the tk loop.
func
ipykernel.eventloops.loop_wx_exit(kernel)Exit the wx loop.
class
ipykernel.gui.gtk3embed.GTKEmbedA class to embed a kernel into the GTK main event loop.
func
ipykernel.gui.gtk3embed.GTKEmbed.dummy(*args, **kw)No-op.
method
ipykernel.gui.gtk3embed.GTKEmbed.stop()Stop the embed.
class
ipykernel.gui.gtkembed.GTKEmbedA class to embed a kernel into the GTK main event loop.
func
ipykernel.gui.gtkembed.GTKEmbed.dummy(*args, **kw)No-op.
method
ipykernel.gui.gtkembed.GTKEmbed.stop()Stop the embed.
class
ipykernel.heartbeat.HeartbeatA simple ping-pong style heartbeat that runs in a thread.
method
ipykernel.heartbeat.Heartbeat.pick_port()Pick a port for the heartbeat.
method
ipykernel.heartbeat.Heartbeat.run()Run the heartbeat thread.
class
ipykernel.inprocess.blocking.BlockingInProcessChannelA blocking in-process channel.
method
ipykernel.inprocess.blocking.BlockingInProcessChannel.call_handlers(msg)Call the handlers for a message.
class
ipykernel.inprocess.blocking.BlockingInProcessKernelClientA blocking in-process kernel client.
class
ipykernel.inprocess.blocking.BlockingInProcessStdInChannelA blocking in-process stdin channel.
class
ipykernel.inprocess.channels.InProcessChannelBase class for in-process channels.
method
ipykernel.inprocess.channels.InProcessChannel.flush(timeout=1.0)Flush the channel.
method
ipykernel.inprocess.channels.InProcessChannel.is_alive()Test if the channel is alive.
method
ipykernel.inprocess.channels.InProcessChannel.process_events()Process any pending GUI events.
method
ipykernel.inprocess.channels.InProcessChannel.start()Start the channel.
method
ipykernel.inprocess.channels.InProcessChannel.stop()Stop the channel.
class
ipykernel.inprocess.client.InProcessKernelClientA client for an in-process kernel.
method
ipykernel.inprocess.client.InProcessKernelClient.complete(code, cursor_pos=None)Get code completion.
method
ipykernel.inprocess.client.InProcessKernelClient.execute(code:str, silent:bool=False, store_history:bool=True, user_expressions:dict[str, Any] | None=None, allow_stdin:bool | None=None, stop_on_error:bool=True) -> strExecute code on the client.
method
ipykernel.inprocess.client.InProcessKernelClient.get_connection_info(session:bool=False) -> KernelConnectionInfoGet the connection info for the client.
method
ipykernel.inprocess.client.InProcessKernelClient.get_control_msg(block=True, timeout=None)Get a control message.
method
ipykernel.inprocess.client.InProcessKernelClient.get_iopub_msg(block=True, timeout=None)Get an iopub message.
method
ipykernel.inprocess.client.InProcessKernelClient.get_shell_msg(block=True, timeout=None)Get a shell message.
method
ipykernel.inprocess.client.InProcessKernelClient.get_stdin_msg(block=True, timeout=None)Get a stdin message.
method
ipykernel.inprocess.client.InProcessKernelClient.history(raw=True, output=False, hist_access_type='range', **kwds)Get code history.
method
ipykernel.inprocess.client.InProcessKernelClient.input(string)Handle kernel input.
method
ipykernel.inprocess.client.InProcessKernelClient.inspect(code, cursor_pos=None, detail_level=0)Get code inspection.
method
ipykernel.inprocess.client.InProcessKernelClient.kernel_info()Request kernel info.
method
ipykernel.inprocess.client.InProcessKernelClient.shutdown(restart=False)Handle shutdown.
class
ipykernel.inprocess.ipkernel.InProcessInteractiveShellAn in-process interactive shell.
class
ipykernel.inprocess.ipkernel.InProcessKernelAn in-process kernel.
class
ipykernel.inprocess.manager.InProcessKernelManagerA manager for an in-process kernel.
method
ipykernel.inprocess.manager.InProcessKernelManager.client(**kwargs)Get a client for the kernel.
method
ipykernel.inprocess.manager.InProcessKernelManager.interrupt_kernel()Interrupt the kernel.
method
ipykernel.inprocess.manager.InProcessKernelManager.is_alive()Test if the kernel is alive.
method
ipykernel.inprocess.manager.InProcessKernelManager.restart_kernel(now=False, **kwds)Restart the kernel.
method
ipykernel.inprocess.manager.InProcessKernelManager.shutdown_kernel()Shutdown the kernel.
method
ipykernel.inprocess.manager.InProcessKernelManager.signal_kernel(signum)Send a signal to the kernel.
method
ipykernel.inprocess.manager.InProcessKernelManager.start_kernel(**kwds)Start the kernel.
method
ipykernel.iostream.BackgroundSocket.send(msg, *args, **kwargs)Send a message to the socket.
method
ipykernel.iostream.BackgroundSocket.send_multipart(*args, **kwargs)Schedule send in IO thread
method
ipykernel.iostream.OutStream.close()Close the stream.
method
ipykernel.iostream.OutStream.set_parent(parent)Set the parent header.
method
ipykernel.iostream.OutStream.writable()Test whether the stream is writable.
method
ipykernel.iostream.OutStream.writelines(sequence)Write lines to the stream.
class
ipykernel.ipkernel.IPythonKernelThe IPython Kernel class.
method
ipykernel.ipkernel.IPythonKernel.do_apply(content, bufs, msg_id, reply_metadata)Handle an apply request.
method
ipykernel.ipkernel.IPythonKernel.do_clear()Clear the kernel.
method
ipykernel.ipkernel.IPythonKernel.do_complete(code, cursor_pos)Handle code completion.
method
ipykernel.ipkernel.IPythonKernel.do_debug_request(msg)Handle a debug request.
method
ipykernel.ipkernel.IPythonKernel.do_inspect(code, cursor_pos, detail_level=0, omit_sections=())Handle code inspection.
method
ipykernel.ipkernel.IPythonKernel.do_is_complete(code)Handle an is_complete request.
method
ipykernel.ipkernel.IPythonKernel.do_shutdown(restart)Handle kernel shutdown.
method
ipykernel.ipkernel.IPythonKernel.finish_metadata(parent, metadata, reply_content)Finish populating metadata.
method
ipykernel.ipkernel.IPythonKernel.init_metadata(parent)Initialize metadata.
method
ipykernel.ipkernel.IPythonKernel.poll_stopped_queue()Poll the stopped queue.
method
ipykernel.ipkernel.IPythonKernel.start()Start the kernel.
class
ipykernel.ipkernel.KernelDEPRECATED.
func
ipykernel.jsonutil.json_clean(obj)Deprecated, this is a no-op for jupyter-client>=7.
class
ipykernel.kernelapp.IPKernelAppThe IPYKernel application class.
method
ipykernel.kernelapp.IPKernelApp.cleanup_connection_file()Clean up our connection file.
method
ipykernel.kernelapp.IPKernelApp.close()Close zmq sockets in an orderly fashion
method
ipykernel.kernelapp.IPKernelApp.excepthook(etype, evalue, tb)Handle an exception.
method
ipykernel.kernelapp.IPKernelApp.init_connection_file()Initialize our connection file.
method
ipykernel.kernelapp.IPKernelApp.init_control(context)Initialize the control channel.
method
ipykernel.kernelapp.IPKernelApp.init_crash_handler()Initialize the crash handler.
method
ipykernel.kernelapp.IPKernelApp.init_heartbeat()start the heart beating
method
ipykernel.kernelapp.IPKernelApp.init_iopub(context)Initialize the iopub channel.
method
ipykernel.kernelapp.IPKernelApp.init_kernel()Create the Kernel object itself
method
ipykernel.kernelapp.IPKernelApp.init_poller()Initialize the poller.
method
ipykernel.kernelapp.IPKernelApp.init_shell()Initialize the shell channel.
method
ipykernel.kernelapp.IPKernelApp.init_signal()Initialize the signal handler.
method
ipykernel.kernelapp.IPKernelApp.initialize(argv=None)Initialize the application.
method
ipykernel.kernelapp.IPKernelApp.start()Start the application.
method
ipykernel.kernelapp.IPKernelApp.write_connection_file(**kwargs:Any) -> Nonewrite connection info to JSON file
func
ipykernel.kernelapp.main()Run an IPKernel as an application
class
ipykernel.kernelbase.KernelThe base kernel class.
method
ipykernel.kernelbase.Kernel.comm_info_request(stream, ident, parent)Handle a comm info request.
method
ipykernel.kernelbase.Kernel.complete_request(stream, ident, parent)Handle a completion request.
method
ipykernel.kernelbase.Kernel.connect_request(stream, ident, parent)Handle a connect request.
method
ipykernel.kernelbase.Kernel.create_subshell_request(socket, ident, parent) -> NoneHandle a create subshell request.
method
ipykernel.kernelbase.Kernel.debug_request(stream, ident, parent)Handle a debug request.
method
ipykernel.kernelbase.Kernel.delete_subshell_request(socket, ident, parent) -> NoneHandle a delete subshell request.
method
ipykernel.kernelbase.Kernel.dispatch_shell(msg, subshell_id:str | None=None)dispatch shell requests
method
ipykernel.kernelbase.Kernel.enter_eventloop()enter eventloop
method
ipykernel.kernelbase.Kernel.execute_request(stream, ident, parent)handle an execute_request
method
ipykernel.kernelbase.Kernel.finish_metadata(parent, metadata, reply_content)Finish populating metadata.
method
ipykernel.kernelbase.Kernel.get_process_metric_value(process, name, attribute=None)Get the process metric value.
method
ipykernel.kernelbase.Kernel.history_request(stream, ident, parent)Handle a history request.
method
ipykernel.kernelbase.Kernel.init_metadata(parent)Initialize metadata.
method
ipykernel.kernelbase.Kernel.inspect_request(stream, ident, parent)Handle an inspect request.
method
ipykernel.kernelbase.Kernel.interrupt_request(stream, ident, parent)Handle an interrupt request.
method
ipykernel.kernelbase.Kernel.is_complete_request(stream, ident, parent)Handle an is_complete request.
method
ipykernel.kernelbase.Kernel.kernel_info_request(stream, ident, parent)Handle a kernel info request.
method
ipykernel.kernelbase.Kernel.list_subshell_request(socket, ident, parent) -> NoneHandle a list subshell request.
method
ipykernel.kernelbase.Kernel.process_control(msg)dispatch control requests
method
ipykernel.kernelbase.Kernel.shutdown_request(stream, ident, parent)Handle a shutdown request.
method
ipykernel.kernelbase.Kernel.start()register dispatchers for streams
method
ipykernel.kernelbase.Kernel.usage_request(stream, ident, parent)Handle a usage request.
class
ipykernel.kernelspec.InstallIPythonKernelSpecAppDummy app wrapping argparse
method
ipykernel.kernelspec.InstallIPythonKernelSpecApp.initialize(argv:list[str] | None=None) -> NoneInitialize the app.
method
ipykernel.kernelspec.InstallIPythonKernelSpecApp.start() -> NoneStart the app.
func
ipykernel.kernelspec.get_kernel_dict(extra_arguments:list[str] | None=None, python_arguments:list[str] | None=None) -> dict[str, Any]Construct dict for kernel.json
class
ipykernel.log.EnginePUBHandlerA simple PUBHandler subclass that sets root_topic
class
ipykernel.shellchannel.ShellChannelThreadA thread for a shell channel.
method
ipykernel.shellchannel.ShellChannelThread.run() -> NoneRun the thread.
class
ipykernel.subshell.SubshellThreadA thread for a subshell.
method
ipykernel.subshell.SubshellThread.run() -> NoneRun the thread.
class
ipykernel.subshell_manager.SubshellManagerA manager of subshells.
method
ipykernel.subshell_manager.SubshellManager.close() -> NoneStop all subshells and close all resources.
method
ipykernel.subshell_manager.SubshellManager.get_subshell_aborting(subshell_id:str) -> boolGet the boolean aborting flag of the specified subshell.
method
ipykernel.subshell_manager.SubshellManager.list_subshell() -> list[str]Return list of current subshell ids.
method
ipykernel.subshell_manager.SubshellManager.set_subshell_aborting(subshell_id:str, aborting:bool) -> NoneSet the aborting flag of the specified subshell.
method
ipykernel.subshell_manager.SubshellManager.subshell_id_from_thread_id(thread_id:int) -> str | NoneReturn subshell_id of the specified thread_id.
class
ipykernel.thread.BaseThreadBase class for threads.
method
ipykernel.thread.BaseThread.run() -> NoneRun the thread.
method
ipykernel.thread.BaseThread.stop() -> NoneStop the thread.
class
ipykernel.trio_runner.TrioRunnerA trio loop runner.
method
ipykernel.trio_runner.TrioRunner.initialize(kernel, io_loop)Initialize the runner.
method
ipykernel.trio_runner.TrioRunner.interrupt(signum, frame)Interrupt the runner.
func
ipykernel.trio_runner.TrioRunner.loc(coro)A thread runner context.
method
ipykernel.trio_runner.TrioRunner.run()Run the loop.
func
ipykernel.trio_runner.TrioRunner.trio_main()Run the main loop.
class
ipykernel.utils.LazyDictLazy evaluated read-only dictionary.
class
ipykernel.zmqshell.KernelMagicsKernel magics.
method
ipykernel.zmqshell.KernelMagics.clear(arg_s)Clear the terminal.
method
ipykernel.zmqshell.KernelMagics.less(arg_s)Show a file through the pager.
method
ipykernel.zmqshell.KernelMagics.subshell(arg_s)List all current subshells
class
ipykernel.zmqshell.ZMQInteractiveShellA subclass of InteractiveShell for ZMQ.
method
ipykernel.zmqshell.ZMQInteractiveShell.ask_exit()Engage the exit actions.
method
ipykernel.zmqshell.ZMQInteractiveShell.enable_gui(gui:typing.Any=None) -> NoneEnable a given gui.
method
ipykernel.zmqshell.ZMQInteractiveShell.get_parent()Get the parent header.
method
ipykernel.zmqshell.ZMQInteractiveShell.init_hooks()Initialize hooks.
method
ipykernel.zmqshell.ZMQInteractiveShell.init_magics()Initialize magics.
method
ipykernel.zmqshell.ZMQInteractiveShell.init_virtualenv()Initialize virtual environment.
method
ipykernel.zmqshell.ZMQInteractiveShell.run_cell(*args, **kwargs)Run a cell.
この情報について
掲載しているシグネチャは ipython/ipykernel の公開ソースコードを
Python の ast モジュールで静的解析し、引数名・デフォルト値・
型注釈・戻り値型をそのまま抽出したものです。実装コードは保存していません。
詳しくは仕組みの解説をご覧ください。