Configuration options

These options can be set in ~/.jupyter/jupyter_console_config.py, or at the command line when you start it.

ConnectionFileMixin.connection_fileUnicode

Default: ''

JSON file in which to store connection info [default: kernel-<pid>.json]

This file will contain the IP, ports, and authentication key needed to connect clients to this kernel. By default, this file will be created in the security dir of the current profile, but can be specified by absolute path.

ConnectionFileMixin.control_portInt

Default: 0

set the control (ROUTER) port [default: random]

ConnectionFileMixin.hb_portInt

Default: 0

set the heartbeat port [default: random]

ConnectionFileMixin.iopub_portInt

Default: 0

set the iopub (PUB) port [default: random]

ConnectionFileMixin.ipUnicode

Default: ''

Set the kernel’s IP address [default localhost].

If the IP address is something other than localhost, then Consoles on other machines will be able to connect to the Kernel, so be careful!

ConnectionFileMixin.shell_portInt

Default: 0

set the shell (ROUTER) port [default: random]

ConnectionFileMixin.stdin_portInt

Default: 0

set the stdin (ROUTER) port [default: random]

ConnectionFileMixin.transportany of 'tcp'``|’ipc’`` (case-insensitive)

Default: 'tcp'

No description

JupyterConsoleApp.confirm_exitCBool

Default: True

Set to display confirmation dialog on exit. You can always use ‘exit’ or ‘quit’, to force a direct exit without any confirmation.

JupyterConsoleApp.connection_fileUnicode

Default: ''

JSON file in which to store connection info [default: kernel-<pid>.json]

This file will contain the IP, ports, and authentication key needed to connect clients to this kernel. By default, this file will be created in the security dir of the current profile, but can be specified by absolute path.

JupyterConsoleApp.control_portInt

Default: 0

set the control (ROUTER) port [default: random]

JupyterConsoleApp.existingCUnicode

Default: ''

Connect to an already running kernel

JupyterConsoleApp.hb_portInt

Default: 0

set the heartbeat port [default: random]

JupyterConsoleApp.iopub_portInt

Default: 0

set the iopub (PUB) port [default: random]

JupyterConsoleApp.ipUnicode

Default: ''

Set the kernel’s IP address [default localhost].

If the IP address is something other than localhost, then Consoles on other machines will be able to connect to the Kernel, so be careful!

JupyterConsoleApp.kernel_manager_classType

Default: 'jupyter_client.manager.KernelManager'

The kernel manager class to use.

JupyterConsoleApp.kernel_nameUnicode

Default: 'python'

The name of the default kernel to start.

JupyterConsoleApp.shell_portInt

Default: 0

set the shell (ROUTER) port [default: random]

JupyterConsoleApp.sshkeyUnicode

Default: ''

Path to the ssh key to use for logging in to the ssh server.

JupyterConsoleApp.sshserverUnicode

Default: ''

The SSH server to use to connect to the kernel.

JupyterConsoleApp.stdin_portInt

Default: 0

set the stdin (ROUTER) port [default: random]

JupyterConsoleApp.transportany of 'tcp'``|’ipc’`` (case-insensitive)

Default: 'tcp'

No description

Application.log_datefmtUnicode

Default: '%Y-%m-%d %H:%M:%S'

The date format used by logging formatters for %(asctime)s

Application.log_formatUnicode

Default: '[%(name)s]%(highlevel)s %(message)s'

The Logging format template

Application.log_levelany of 0``|``10``|``20``|``30``|``40``|``50``|’DEBUG’|’INFO’|’WARN’|’ERROR’|’CRITICAL’``

Default: 30

Set the log level by value or name.

Application.show_configBool

Default: False

Instead of starting the Application, dump configuration to stdout

Application.show_config_jsonBool

Default: False

Instead of starting the Application, dump configuration to stdout (as JSON)

JupyterApp.answer_yesBool

Default: False

Answer yes to any prompts.

JupyterApp.config_fileUnicode

Default: ''

Full path of a config file.

JupyterApp.config_file_nameUnicode

Default: ''

Specify a config file to load.

JupyterApp.generate_configBool

Default: False

Generate default config file.

JupyterApp.log_datefmtUnicode

Default: '%Y-%m-%d %H:%M:%S'

The date format used by logging formatters for %(asctime)s

JupyterApp.log_formatUnicode

Default: '[%(name)s]%(highlevel)s %(message)s'

The Logging format template

JupyterApp.log_levelany of 0``|``10``|``20``|``30``|``40``|``50``|’DEBUG’|’INFO’|’WARN’|’ERROR’|’CRITICAL’``

Default: 30

Set the log level by value or name.

JupyterApp.show_configBool

Default: False

Instead of starting the Application, dump configuration to stdout

JupyterApp.show_config_jsonBool

Default: False

Instead of starting the Application, dump configuration to stdout (as JSON)

ZMQTerminalIPythonApp.answer_yesBool

Default: False

Answer yes to any prompts.

ZMQTerminalIPythonApp.config_fileUnicode

Default: ''

Full path of a config file.

ZMQTerminalIPythonApp.config_file_nameUnicode

Default: ''

Specify a config file to load.

ZMQTerminalIPythonApp.confirm_exitCBool

Default: True

Set to display confirmation dialog on exit. You can always use ‘exit’ or ‘quit’, to force a direct exit without any confirmation.

ZMQTerminalIPythonApp.connection_fileUnicode

Default: ''

JSON file in which to store connection info [default: kernel-<pid>.json]

This file will contain the IP, ports, and authentication key needed to connect clients to this kernel. By default, this file will be created in the security dir of the current profile, but can be specified by absolute path.

ZMQTerminalIPythonApp.control_portInt

Default: 0

set the control (ROUTER) port [default: random]

ZMQTerminalIPythonApp.existingCUnicode

Default: ''

Connect to an already running kernel

ZMQTerminalIPythonApp.generate_configBool

Default: False

Generate default config file.

ZMQTerminalIPythonApp.hb_portInt

Default: 0

set the heartbeat port [default: random]

ZMQTerminalIPythonApp.iopub_portInt

Default: 0

set the iopub (PUB) port [default: random]

ZMQTerminalIPythonApp.ipUnicode

Default: ''

Set the kernel’s IP address [default localhost].

If the IP address is something other than localhost, then Consoles on other machines will be able to connect to the Kernel, so be careful!

ZMQTerminalIPythonApp.kernel_manager_classType

Default: 'jupyter_client.manager.KernelManager'

The kernel manager class to use.

ZMQTerminalIPythonApp.kernel_nameUnicode

Default: 'python'

The name of the default kernel to start.

ZMQTerminalIPythonApp.log_datefmtUnicode

Default: '%Y-%m-%d %H:%M:%S'

The date format used by logging formatters for %(asctime)s

ZMQTerminalIPythonApp.log_formatUnicode

Default: '[%(name)s]%(highlevel)s %(message)s'

The Logging format template

ZMQTerminalIPythonApp.log_levelany of 0``|``10``|``20``|``30``|``40``|``50``|’DEBUG’|’INFO’|’WARN’|’ERROR’|’CRITICAL’``

Default: 30

Set the log level by value or name.

ZMQTerminalIPythonApp.shell_portInt

Default: 0

set the shell (ROUTER) port [default: random]

ZMQTerminalIPythonApp.show_configBool

Default: False

Instead of starting the Application, dump configuration to stdout

ZMQTerminalIPythonApp.show_config_jsonBool

Default: False

Instead of starting the Application, dump configuration to stdout (as JSON)

ZMQTerminalIPythonApp.sshkeyUnicode

Default: ''

Path to the ssh key to use for logging in to the ssh server.

ZMQTerminalIPythonApp.sshserverUnicode

Default: ''

The SSH server to use to connect to the kernel.

ZMQTerminalIPythonApp.stdin_portInt

Default: 0

set the stdin (ROUTER) port [default: random]

ZMQTerminalIPythonApp.transportany of 'tcp'``|’ipc’`` (case-insensitive)

Default: 'tcp'

No description

ZMQTerminalInteractiveShell.bannerUnicode

Default: 'Jupyter console {version}\\n\\n{kernel_banner}'

Text to display before the first prompt. Will be formatted with variables {version} and {kernel_banner}.

ZMQTerminalInteractiveShell.callable_image_handlerAny

Default: None

Callable object called via ‘callable’ image handler with one argument, data, which is msg[“content”][“data”] where msg is the message from iopub channel. For example, you can find base64 encoded PNG data as data[‘image/png’]. If your function can’t handle the data supplied, it should return False to indicate this.

ZMQTerminalInteractiveShell.display_completionsany of 'column'``|’multicolumn’|’readlinelike’``

Default: 'multicolumn'

Options for displaying tab completions, ‘column’, ‘multicolumn’, and ‘readlinelike’. These options are for prompt_toolkit, see prompt_toolkit documentation for more information.

ZMQTerminalInteractiveShell.editing_modeUnicode

Default: 'emacs'

Shortcut style to use at the prompt. ‘vi’ or ‘emacs’.

ZMQTerminalInteractiveShell.highlight_matching_bracketsBool

Default: True

Highlight matching brackets.

ZMQTerminalInteractiveShell.highlighting_styleUnicode

Default: ''

The name of a Pygments style to use for syntax highlighting

ZMQTerminalInteractiveShell.highlighting_style_overridesDict

Default: {}

Override highlighting format for specific tokens

ZMQTerminalInteractiveShell.history_load_lengthInt

Default: 1000

How many history items to load into memory

ZMQTerminalInteractiveShell.image_handlerany of 'PIL'``|’stream’|’tempfile’|’callable’`` or None

Default: 'PIL'

Handler for image type output. This is useful, for example, when connecting to the kernel in which pylab inline backend is activated. There are four handlers defined. ‘PIL’: Use Python Imaging Library to popup image; ‘stream’: Use an external program to show the image. Image will be fed into the STDIN of the program. You will need to configure stream_image_handler; ‘tempfile’: Use an external program to show the image. Image will be saved in a temporally file and the program is called with the temporally file. You will need to configure tempfile_image_handler; ‘callable’: You can set any Python callable which is called with the image data. You will need to configure callable_image_handler.

ZMQTerminalInteractiveShell.include_other_outputBool

Default: False

Whether to include output from clients

other than this one sharing the same kernel.

ZMQTerminalInteractiveShell.kernel_is_complete_timeoutFloat

Default: 1

Timeout (in seconds) for giving up on a kernel’s is_complete

response.

If the kernel does not respond at any point within this time, the kernel will no longer be asked if code is complete, and the console will default to the built-in is_complete test.

ZMQTerminalInteractiveShell.kernel_timeoutFloat

Default: 60

Timeout for giving up on a kernel (in seconds).

On first connect and restart, the console tests whether the kernel is running and responsive by sending kernel_info_requests. This sets the timeout in seconds for how long the kernel can take before being presumed dead.

ZMQTerminalInteractiveShell.mime_preferenceList

Default: ['image/png', 'image/jpeg', 'image/svg+xml']

Preferred object representation MIME type in order. First matched MIME type will be used.

ZMQTerminalInteractiveShell.other_output_prefixUnicode

Default: 'Remote '

Prefix to add to outputs coming from clients other than this one.

Only relevant if include_other_output is True.

ZMQTerminalInteractiveShell.prompt_includes_vi_modeBool

Default: True

Display the current vi mode (when using vi editing mode).

ZMQTerminalInteractiveShell.simple_promptBool

Default: False

Use simple fallback prompt. Features may be limited.

ZMQTerminalInteractiveShell.stream_image_handlerList

Default: []

Command to invoke an image viewer program when you are using ‘stream’ image handler. This option is a list of string where the first element is the command itself and reminders are the options for the command. Raw image data is given as STDIN to the program.

ZMQTerminalInteractiveShell.tempfile_image_handlerList

Default: []

Command to invoke an image viewer program when you are using ‘tempfile’ image handler. This option is a list of string where the first element is the command itself and reminders are the options for the command. You can use {file} and {format} in the string to represent the location of the generated image file and image format.

ZMQTerminalInteractiveShell.true_colorBool

Default: False

Use 24bit colors instead of 256 colors in prompt highlighting. If your terminal supports true color, the following command should print ‘TRUECOLOR’ in orange: printf “x1b[38;2;255;100;0mTRUECOLORx1b[0mn”

ZMQTerminalInteractiveShell.use_kernel_is_completeBool

Default: True

Whether to use the kernel’s is_complete message

handling. If False, then the frontend will use its own is_complete handler.

KernelManager.autorestartBool

Default: True

Should we autorestart the kernel if it dies.

KernelManager.connection_fileUnicode

Default: ''

JSON file in which to store connection info [default: kernel-<pid>.json]

This file will contain the IP, ports, and authentication key needed to connect clients to this kernel. By default, this file will be created in the security dir of the current profile, but can be specified by absolute path.

KernelManager.control_portInt

Default: 0

set the control (ROUTER) port [default: random]

KernelManager.hb_portInt

Default: 0

set the heartbeat port [default: random]

KernelManager.iopub_portInt

Default: 0

set the iopub (PUB) port [default: random]

KernelManager.ipUnicode

Default: ''

Set the kernel’s IP address [default localhost].

If the IP address is something other than localhost, then Consoles on other machines will be able to connect to the Kernel, so be careful!

KernelManager.shell_portInt

Default: 0

set the shell (ROUTER) port [default: random]

KernelManager.shutdown_wait_timeFloat

Default: 5.0

Time to wait for a kernel to terminate before killing it, in seconds. When a shutdown request is initiated, the kernel will be immediately sent an interrupt (SIGINT), followedby a shutdown_request message, after 1/2 of shutdown_wait_time`it will be sent a terminate (SIGTERM) request, and finally at the end of `shutdown_wait_time will be killed (SIGKILL). terminate and kill may be equivalent on windows. Note that this value can beoverridden by the in-use kernel provisioner since shutdown times mayvary by provisioned environment.

KernelManager.stdin_portInt

Default: 0

set the stdin (ROUTER) port [default: random]

KernelManager.transportany of 'tcp'``|’ipc’`` (case-insensitive)

Default: 'tcp'

No description

KernelRestarter.debugBool

Default: False

Whether to include every poll event in debugging output.

Has to be set explicitly, because there will be a lot of output.

KernelRestarter.random_ports_until_aliveBool

Default: True

Whether to choose new random ports when restarting before the kernel is alive.

KernelRestarter.restart_limitInt

Default: 5

The number of consecutive autorestarts before the kernel is presumed dead.

KernelRestarter.stable_start_timeFloat

Default: 10.0

The time in seconds to consider the kernel to have completed a stable start up.

KernelRestarter.time_to_deadFloat

Default: 3.0

Kernel heartbeat interval in seconds.

Session.buffer_thresholdInt

Default: 1024

Threshold (in bytes) beyond which an object’s buffer should be extracted to avoid pickling.

Session.check_pidBool

Default: True

Whether to check PID to protect against calls after fork.

This check can be disabled if fork-safety is handled elsewhere.

Session.copy_thresholdInt

Default: 65536

Threshold (in bytes) beyond which a buffer should be sent without copying.

Session.debugBool

Default: False

Debug output in the Session

Session.digest_history_sizeInt

Default: 65536

The maximum number of digests to remember.

The digest history will be culled when it exceeds this value.

Session.item_thresholdInt

Default: 64

The maximum number of items for a container to be introspected for custom serialization.

Containers larger than this are pickled outright.

Session.keyCBytes

Default: b''

execution key, for signing messages.

Session.keyfileUnicode

Default: ''

path to file containing execution key.

Session.metadataDict

Default: {}

Metadata dictionary, which serves as the default top-level metadata dict for each message.

Session.packerDottedObjectName

Default: 'json'

The name of the packer for serializing messages.

Should be one of ‘json’, ‘pickle’, or an import name for a custom callable serializer.

Session.sessionCUnicode

Default: ''

The UUID identifying this session.

Session.signature_schemeUnicode

Default: 'hmac-sha256'

The digest scheme used to construct the message signatures.

Must have the form ‘hmac-HASH’.

Session.unpackerDottedObjectName

Default: 'json'

The name of the unpacker for unserializing messages.

Only used with custom functions for packer.

Session.usernameUnicode

Default: 'mockbuild'

Username for the Session. Default is your system username.