Coder Social home page Coder Social logo

nii-dg / dg_jupyter-lc_run_through Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nii-cloud-operation/jupyter-lc_run_through

0.0 0.0 0.0 22.15 MB

Jupyter Notebook extension to run cells contained in a section with one click, then freeze them

License: BSD 3-Clause "New" or "Revised" License

JavaScript 78.67% Python 13.21% CSS 5.80% Dockerfile 2.32%

dg_jupyter-lc_run_through's Introduction

demo

Jupyter-LC_run_through

This extension enables to execute cells contained in a collapsed heading section with one click, and view a summary of hidden outputs.

Successfully executed cells are frozen automatically to prevent to re-run.

Prerequisite

How to install

Installing run-through extension

Install the python package

$ pip install git+https://github.com/NII-cloud-operation/Jupyter-LC_run_through

Install and enable this extension and enable required extensions

$ jupyter run-through quick-setup

Disable and uninstall this extension

$ jupyter run-through quick-remove

Updating Font Awesome

The extension uses latest(test with 4.7.0) Font Awesome icons. If you use Jupyter Notebook Server 5.0.0 or earlier, you should update Font Awesome as follows:

  1. Retrieve the notebook installed path

    $ find /usr -name FontAwesome.otf | grep notebook
    /usr/local/lib/python2.7/dist-packages/notebook/static/components/font-awesome/fonts/FontAwesome.otf
    
  2. Download and Update Font Awesome

    cd /tmp/
    curl -O http://fontawesome.io/assets/font-awesome-4.7.0.zip
    unzip font-awesome-4.7.0.zip
    cp font-awesome-4.7.0/fonts/* /usr/local/lib/python2.7/dist-packages/notebook/static/components/font-awesome/fonts/
    

How to use

Collapse headings

Any markdown heading cell (that is, one which begins with 1-6 # characters), becomes collapsible once rendered.

Please see readme.md of Collapsible Headings about details.

Run-through button and summary of outputs

The run-through button and summary of outputs appear in a collapsed heading cell.

Collapsed View

The code cells which are collapsed appear as colored bricks. The colors mean as follows:

  • Gray: Not Executed
  • Green: Successfully Executed
  • Pink: Failed

A brick with a snowflake means it is Frozen cell as below.

Expanded View

The extension provides Lock(make the cell read only) and Freeze(prevent re-execution) functions like Freeze extention , but also allows to control the Locked(Read Only) and Frozen states separately.

Toolbar

When the extension is enabled, the buttons below appear on the toolbar.

Unfreeze Buttons

For the Locked(Read Only) state:

  • Make selected cells read-only
  • Make selected cells editable

For the Frozen state:

  • Freeze selected cells
  • Unfreeze selected cells
  • Unfreeze below in section
  • Unfreeze below all

dg_jupyter-lc_run_through's People

Contributors

yacchin1205 avatar shingo78 avatar n08u 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.