Giter Club home page Giter Club logo

ipynb_drop_output's Introduction

ipynb_drop_output

IPython Notebooks in git repositories.

Based on [http://pascalbugnion.net/blog/ipython-notebooks-and-git.html](this blog post).

Works with ipython notebook version 4.0. and python 2.7.

Howto add new ipython notebooks to a git repo

Install the filter script (Linux)

Copy the two scripts (sh and py) into a folder named "scripts" inside your git repo that you want to track ipython notebooks in. Run the "install_pyenv_git_filter.sh" script from the scripts directory: it will change your PATH environmantal variable permanently (a new line will be added to your .bashrc file). Open a new shell to check if the PATH contains this git repo's "scripts" dir.

$ cd scripts
$ ./install_pyenv_git_filter.sh
$ echo $PATH

Add new notebooks

It is necessary to add a short metadata extension to new notebooks. You should add this json snippet to the notebooks "metadata" section, either by editing them in a code editor, or by clicking "Edit" and in the menu: "Edit notebook metadata" within the ipython notebook:

"git" : {
    "suppress_outputs" : true
},

For examples, have a look at the notebooks in this repo (ipython-notebooks/*.ipynb).

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.