Giter VIP home page Giter VIP logo

e2x-nbtools's Introduction

e2x-nbtools

License Quality Gate Status Coverage Code style: black

Tools for customizing jupyter notebook

1. Multiple checkpoints for jupyter notebook

This allows you to create more than one checkpoint for your notebook.

1.1 Installation

git clone https://github.com/DigiKlausur/e2x-nbtools
cd e2x-nbtools
pip install .

1.2 Enabling multiple checkpoints

Put a file called jupyter_notebook_config.py in one of the configuration directories. Put the following content in this file:

# jupyter_notebook_config.py

from e2x_nbtools.contents.filecheckpoints import E2XFileCheckpoints

# Get an empty config
c = get_config()

# Register the new checkpoints
c.ContentsManager.checkpoint_class = E2XFileCheckpoints
# Set the number of checkpoints to keep
c.ContentsManager.checkpoint_class.number_of_checkpoints = 5

1.3 Enabling the frontend nbextension

To make sure the checkpoints are correctly displayed and updated in the notebook view you need to enable the checkpoints nbextension.

This can be done by typing the following in a terminal:

jupyter nbextension install e2x_nbtools --py --sys-prefix
jupyter nbextension enable e2x_nbtools/main --py --sys-prefix

e2x-nbtools's People

Contributors

tmetzl avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.