Skip to content

Instantly share code, notes, and snippets.

@WillKoehrsen
Created December 8, 2018 20:02
Show Gist options
  • Save WillKoehrsen/9510611fbee90761c7951e86219e7542 to your computer and use it in GitHub Desktop.
Save WillKoehrsen/9510611fbee90761c7951e86219e7542 to your computer and use it in GitHub Desktop.

Default Cell

Adds and runs a default cell at the top of each new notebook. To change the default cell, edit the main.js file in the code:

Jupyter.notebook.insert_cell_above('code', 0).set_text(``)

Set the text to whatever you would like.

This extension also adds a button to the toolbar allowing you to insert and run the default cell above your current cell. This can be helpful if you open an already started notebook and notice you are missing some common imports.

This extension is a work in progress and any help would be appreciated. Feel free to make contributions on GitHub or contact the author (Will Koehrsen) at [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment