Coder Social home page Coder Social logo

ipython_extensions's Introduction

Miscellaneous IPython and Jupyter extensions

These extensions typically target master of IPython and/or Jupyter, so may not always work on the latest stable releases.

You can install each extension individually, via copy, download, or symlink (below):

ln -s $(pwd)/extensions/* $(ipython locate)/extensions
ln -s $(pwd)/nbextensions/* $(ipython locate)/nbextensions

or you can link the extension directories into your IPython directories (what I do):

ln -s $(pwd)/extensions $(ipython locate)/extensions
ln -s $(pwd)/nbextensions $(ipython locate)/nbextensions

Gist

Add a gist button to the notebook toolbar:

$ jupyter nbextension install https://rawgithub.com/minrk/ipython_extensions/master/nbextensions/gist.js
$ jupyter nbextension enable gist

Table of Contents

Generates floating table of contents inside your notebook from the heading cells. Adds a button to the toolbar to toggle the floating table of contents.

install the extension:

$ jupyter nbextension install --user https://rawgithub.com/minrk/ipython_extensions/master/nbextensions/toc.js
$ curl -L https://rawgithub.com/minrk/ipython_extensions/master/nbextensions/toc.css > $(jupyter --data-dir)/nbextensions/toc.css
$ jupyter nbextension enable toc

Write and execute

This IPython Notebook magic writes the content of the cell to a specified .py file before executing it. An identifier can be used when writing to the file, thus making it possible to overwrite previous iterations of the same code block. The use case for this extension is to export selected code from a Notebook for reuse through a .py file.

To install the extension use:

%install_ext https://raw.githubusercontent.com/minrk/ipython_extensions/master/extensions/writeandexecute.py

Then load it with

%load_ext writeandexecute

ipython_extensions's People

Contributors

minrk avatar jankatins avatar magican avatar flothesof avatar videlec avatar andreas-h avatar fperez avatar bryant1410 avatar dekstop avatar

Stargazers

Nolwenn Lavielle avatar

Watchers

James Cloos avatar Nils Giordano 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.