Skip to content

Instantly share code, notes, and snippets.

@kamikat
Last active March 13, 2017 08:42
Show Gist options
  • Select an option

  • Save kamikat/3792c5440e6eb6f6468b18519bb2d292 to your computer and use it in GitHub Desktop.

Select an option

Save kamikat/3792c5440e6eb6f6468b18519bb2d292 to your computer and use it in GitHub Desktop.
Jupyter configuration of editor/notebook code indent
// In editor console
Jupyter.editor.config.update({Editor: {codemirror_options: { indentUnit:2 }}})
// In notebook console
Jupyter.notebook.get_selected_cell().config.update({CodeCell: {cm_options: { indentUnit:2 }}})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment