Dev: Javascript Events
Pages 142
- Home
- A gallery of interesting IPython Notebooks
- A gallery of interesting Jupyter and IPython Notebooks
- Code blocks and other ideas
- Cookbook: Branding the IPython notebook
- Cookbook: Connecting to a remote kernel via ssh
- Cookbook: Dated logging
- Cookbook: deploying ipython
- Cookbook: Dynamic prompt
- Cookbook: Hotkeys for faster notebook editing
- Cookbook: Ignoring some commands in history
- Cookbook: Index
- Cookbook: IPython and Emacs
- Cookbook: IPython and Python.NET
- Cookbook: Job control extension
- Cookbook: Launching IPython on OSX
- Cookbook: Macro arguments
- Cookbook: nbconvert templates
- Cookbook: Notebook utilities
- Cookbook: Running a file in the background
- Cookbook: Running screen
- Cookbook: Sending built in help to the pager
- Cookbook: Shadow history
- Cookbook: Standalone executable zip
- Cookbook: Storing aliases
- Cookbook: Styling Notebook
- Cookbook: Styling the QtConsole
- Cookbook: Updating code for use with IPython 0.11 and later
- Cookbook: Using IPython with Console2
- Cookbook: Using IPython with TextMate
- Dev: boot2docker
- Dev: Closing pull requests
- Dev: Coding style
- Dev: Compiling .LESS files
- Dev: Documenting IPython
- Dev: Extending the Messaging Protocol
- Dev: GitHub workflow
- Dev: Index
- Dev: IPython Sphinx directive
- Dev: Javascript Events
- Dev: Lab meetings on Air
- Dev: Meeting notes, February 6, 2013
- Dev: Meeting notes, January 6, 2013
- Dev: Meeting, January 2014
- Dev: Meeting, July 2013
- Dev: Meeting, September 2014
- Dev: Py3compat module
- Dev: PyData 2012 HackNight
- Dev: Releasing IPython
- Dev: Testing
- Dev: Testing kernels against message specification
- Dev: The perfect pull request
- Dev: URL mapping of IPython notebook
- Dev: Windows Sophos issues
- Dev:Codenames
- Extensions Index
- Fix the boot manager after install ubuntu with windows 8
- Frequently asked questions
- Install: Docker
- Install: Index
- Install: Mobile
- Install: Python 3
- IPEP 0: IPEP Template
- IPEP 10: kernel side filtering of display formats
- IPEP 11: Tab Completion System Refactor
- IPEP 12: Splitting KernelManager and KernelClient
- IPEP 13: Updating the Message Spec
- IPEP 14: Notebook Regression Tests
- IPEP 15: Autosaving the IPython Notebook
- IPEP 16: Notebook multi directory dashboard and URL mapping
- IPEP 17: Notebook Format 4
- IPEP 18: Text Editor for the Notebook
- IPEP 19: concurrent.futures (PEP 3148) for IPython.parallel
- IPEP 1: Cleanup and extension of the Magic system in IPython
- IPEP 20: Informal structure of cell metadata
- IPEP 21: Widget Messages
- IPEP 22: Notebook, new cell type "Comment"
- IPEP 23: Backbone.js Widgets
- IPEP 24: completion and object_info
- IPEP 25: Registry of installed kernels
- IPEP 26: Full Featured python js object bridge
- IPEP 27: Contents Service
- IPEP 28: Interleaving Widgets and Output
- IPEP 29: Project Governance
- IPEP 2: Input transformations
- IPEP 3: Multiuser support in the notebook
- IPEP 4: Python 3 Compatibility
- IPEP 5: Notebook JavaScript organization
- IPEP 6: Qt console additional pane
- IPEP 7: Subclients for the Notebook
- IPEP 8: Custom messages and message handlers
- IPEP 9: Slideshow from the notebook
- IPEPs: IPython Enhancement Proposals
- IPython 3.0 comm and widget migration document
- IPython kernels for other languages
- Lets talk Python
- News Categorization using Multinomial Naive Bayes
- Projects using IPython
- Projects using IPython: PyMAD
- Research at UC Berkeley using IPython
- Roadmap: IPython
- Roadmap: NBviewer
- ShowMeDo
- Sprints: PyCon2012
- Sprints: SciPy2012
- Sprints: SciPy2014
- Sprints: SciPy2014 Py3 BoF
- Sprints: SciPy2014 sprint ideas
- Syntax for code blocks
- Trash: 0.11 Migration
- Trash: Cookbook Adding support for ipipe
- Trash: Cookbook Custom completers
- Trash: Cookbook Custom magic commands
- Trash: Cookbook Custom magic examples
- Trash: Cookbook Defining prompts via hooks
- Trash: Cookbook envpersist
- Trash: Cookbook GVim integration
- Trash: Cookbook Integrate with any loop(panda3d example)
- Trash: Cookbook Interrupting threads
- Trash: Cookbook ipy_exportdb
- Trash: Cookbook ipy_render
- Trash: Cookbook Leo IPython Bridge
- Trash: Cookbook Logging
- Trash: Cookbook Moving config to IPython 0.11
- Trash: Cookbook Saving the session on exit
- Trash: Cookbook String list processing
- Trash: Cookbook The sh profile
- Trash: Cookbook User config file
- Trash: EuroSciPy2011
- Trash: IpyKit
- Trash: IPython:About
- Trash: Main Page
- Trash: Main Page PyCon12Sprint
- Trash: Old Embedding GTK
- Trash: Old Embedding Tkinter
- Trash: Parallel Computing
- Trash: Potential projects
- Trash: Py4Science
- Trash: Scratchpad
- Trash: Scratchpad Persistence
- Trash: Using ipipe
- Widgets
- Show 127 more pages…
Clone this wiki locally
(Note: this page is not currently consistent with IPython master)
Javascript events are used to notify unrelated parts of the notebook interface when something happens. For example, if the kernel is busy executing code, it may send an event announcing as such, which can then be picked up by other services, like the notification area. For details on how the events themselves work, see the JQuery documentation.
This page documents the core set of events, and explains when and why they are triggered.
Cell-related events
CellToolbar-related events
Dashboard-related events
app_initialized.DashboardApp
When the iPython Notebook browser window opens for the first time and initializes the Dashboard App. The Dashboard App lists the files and notebooks in the current directory. Additionally, it lets you create and open new iPython Notebooks.
Kernel-related events
- execution_request.Kernel
- input_reply.Kernel
- kernel_autorestarting.Kernel
- kernel_busy.Kernel
- kernel_connected.Kernel
- kernel_connection_failed.Kernel
- kernel_created.Kernel
- kernel_created.Session
- kernel_dead.Kernel
- kernel_dead.Session
- kernel_disconnected.Kernel
- kernel_idle.Kernel
- kernel_interrupting.Kernel
- kernel_killed.Kernel
- kernel_killed.Session
- kernel_ready.Kernel
- kernel_reconnecting.Kernel
- kernel_restarting.Kernel
- kernel_starting.Kernel
- send_input_reply.Kernel
- shell_reply.Kernel
- spec_changed.Kernel
kernel_created.Kernel
The kernel has been successfully created or re-created through /api/kernels, but a connection to it has not necessarily been established yet.
kernel_created.Session
The kernel has been successfully created or re-created through /api/sessions, but a connection to it has not necessarily been established yet.
kernel_reconnecting.Kernel
An attempt is being made to reconnect (via websockets) to the kernel after having been disconnected.
kernel_connected.Kernel
A connection has been established to the kernel. This is triggered as soon as all websockets (e.g. to the shell, iopub, and stdin channels) have been opened. This does not necessarily mean that the kernel is ready to do anything yet, though.
kernel_starting.Kernel
The kernel is starting. This is triggered once when the kernel process is starting up, and can be sent as a message by the kernel, or may be triggered by the frontend if it knows the kernel is starting (e.g., it created the kernel and is connected to it, but hasn't been able to communicate with it yet).
kernel_ready.Kernel
Like kernel_idle.Kernel, but triggered after the kernel has fully started up.
kernel_restarting.Kernel
The kernel is restarting. This is triggered at the beginning of an restart call to /api/kernels.
kernel_autorestarting.Kernel
The kernel is restarting on its own, which probably also means that something happened to cause the kernel to die. For example, running the following code in the notebook would cause the kernel to autorestart:
import os
os._exit(1)
kernel_interrupting.Kernel
The kernel is being interrupted. This is triggered at the beginning of a interrupt call to /api/kernels.
kernel_disconnected.Kernel
The connection to the kernel has been lost.
kernel_connection_failed.Kernel
Not only was the connection lost, but it was lost due to an error (i.e., we did not tell the websockets to close).
kernel_idle.Kernel
The kernel's execution state is 'idle'.
kernel_busy.Kernel
The kernel's execution state is 'busy'.
kernel_killed.Kernel
The kernel has been manually killed through /api/kernels.
kernel_killed.Session
The kernel has been manually killed through /api/sessions.
kernel_dead.Kernel
This is triggered if the kernel dies, and the kernel manager attempts to restart it, but is unable to. For example, the following code run in the notebook will cause the kernel to die and for the kernel manager to be unable to restart it:
import os
from IPython.kernel.connect import get_connection_file
with open(get_connection_file(), 'w') as f:
f.write("garbage")
os._exit(1)
kernel_dead.Session
The kernel could not be started through /api/sessions. This might be because the requested kernel type isn't installed. Another reason for this message is that the kernel died or was killed, but the session wasn't.
Notebook-related events
- app_initialized.NotebookApp
- autosave_disabled.Notebook
- autosave_enabled.Notebook
- checkpoint_created.Notebook
- checkpoint_delete_failed.Notebook
- checkpoint_deleted.Notebook
- checkpoint_failed.Notebook
- checkpoint_restore_failed.Notebook
- checkpoint_restored.Notebook
- checkpoints_listed.Notebook
- command_mode.Notebook
- edit_mode.Notebook
- list_checkpoints_failed.Notebook
- notebook_load_failed.Notebook
- notebook_loaded.Notebook
- notebook_loading.Notebook
- notebook_rename_failed.Notebook
- notebook_renamed.Notebook
- notebook_restoring.Notebook
- notebook_save_failed.Notebook
- notebook_saved.Notebook
- notebook_saving.Notebook
- rename_notebook.Notebook
- selected_cell_type_changed.Notebook
- set_dirty.Notebook
- set_next_input.Notebook
- trust_changed.Notebook