GithubHelp home page GithubHelp logo

haidark / jupyterlab-experiments Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 10.74 MB

An extension for JupyterLab that simplifies sharing "experiments" in notebooks.

License: MIT License

Jupyter Notebook 58.66% JavaScript 21.72% TypeScript 19.27% CSS 0.35%

jupyterlab-experiments's Introduction

JupyterLab-Experiments

Adds "experiments" to JupyterLab notebooks that allow a user to share experimental design and results easily in a single notebook.

Experiments are custom cell execution orders defined by the user that show exactly how a result is generated in the notebook. The experiments are saved as part of the meta-data of the notebook and can be easily shared.

This extension adds a small set of UI elements to JupyterLab:

  • A dropdown menu showing the available experiments
  • Cell index labels

Although experiments are usually added after the code in a notebook is written, adding/removing/moving cells are smartly handled and the existing experiments are automatically updated to reflect changes to the notebook.

Basic Usage

  • Click on the "Select Experiment" button and use the dropdown menu to select an experiment to run or add an experiment.
  • Adding an experiment requires a label ("L2 Regularization") and a cell execution order ("4-5-6-9-12-13-14-8"). The cell execution order must be a list of valid cell indices separated by the dash (-) character.
  • Click the "fast forward" icon to run the selected experiment.

Basic usage of the experiments extension

Handling Changes

  • Once a set of experiments are defined, changes to the order of the cells (add/remove/move) in the notebook will automatically update all experiments so that they point to the same cells.
  • If all the cells that are part of an experiment are removed, the experiment will also be removed.
  • To edit an existing experiment, enter the experiment label in the input field and assign it a new cell execution order.

Handling changes to the cell order

Prerequisites

  • JupyterLab

Installation

jupyter labextension install @haidark/experiments_ext

Development

For a development install (requires npm version 4 or later), do the following in the repository directory:

npm install
npm run build
jupyter labextension link .

To rebuild the package and the JupyterLab app:

npm run build
jupyter lab build

Authors

This extension was developed at the Rensselaer Polytechnic Institute Data Science Research Center in collaboration with KhanTeT by Haidar Khan Ph.D and Sadia Khan.

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.