Jupyter Kernel (xonsh.jupyter_kernel
)¶
Hooks for Jupyter Xonsh Kernel.
- class xonsh.jupyter_kernel.XonshKernel(debug_level=0, session_id=None, config=None, **kwargs)[source]¶
Xonsh xernal for Jupyter
- Parameters
- debug_levelint, optional
Integer from 0 (no debugging) to 3 (all debugging), default: 0.
- session_idstr or None, optional
Unique string id representing the kernel session. If None, this will be replaced with a random UUID.
- configdict or None, optional
Configuration dictionary to start server with. BY default will search the command line for options (if given) or use default configuration.
- deserialize_wire_message(wire_message)[source]¶
Split the routing prefix and message frames from a message on the wire
- do_execute(code='', silent=False, store_history=True, user_expressions=None, allow_stdin=False, parent_header=None, **kwargs)[source]¶
Execute user code.
- send(stream, message_type, content=None, parent_header=None, metadata=None, identities=None)[source]¶
Send data to the client via a stream
- banner = 'Xonsh - Python-powered, cross-platform shell'¶
- implementation = 'Xonsh 0.11.0'¶
- implementation_version = '0.11.0'¶
- language = 'xonsh'¶
- language_info = {'codemirror_mode': 'shell', 'file_extension': '.xsh', 'mimetype': 'text/x-sh', 'name': 'xonsh', 'pygments_lexer': 'xonsh', 'version': '0.11.0'}¶
- language_version = ['0', '11', '0']¶
- property parser¶
- signature_schemes = {'hmac-sha256': <built-in function openssl_sha256>}¶
- xonsh.jupyter_kernel.bind(socket, connection, port)[source]¶
Binds a socket to a port, or a random port if needed. Returns the port.