Code Monkey home page Code Monkey logo

jupyter-notebook-gist's Introduction

jupyter-notebook-gist

Create a gist from the Jupyter Notebook UI.

To install, simply run pip install jupyter-notebook-gist. Alternatively, clone/download the project and run pip install . from a shell in the project's root directory.

After installing, edit your jupyter_notebook_config.py file to specify the github client id and secret:

If your jupyter_notebook_config.py file does not exist, you can create one by running jupyter notebook --generate-config. You can check the location of this file by running jupyter --config-dir.

from notebook.services.config import ConfigManager
c = get_config()
cm = ConfigManager()
c.NotebookApp.oauth_client_id = "my_client_id"         # FIXME
c.NotebookApp.oauth_client_secret = "my_client_secret" # FIXME
cm.update('notebook', {"oauth_client_id": c.NotebookApp.oauth_client_id})

Replace the vars above with a working client_id / secret. You can create one here. Here's an example of an OAuth application created by @mreid-moz for testing.

Then run jupyter notebook from the repo root.

NOTE: Uninstalling jupyter-notebook-gist via pip uninstall jupyter-notebook-gist will uninstall the server extension but leave the client extension in a partially installed state. To fully remove the extension:

  1. Run pip uninstall jupyter-notebook-gist
  2. Delete gist.js from your nbextensions folder.
  3. Delete any references to jupyter-notebook-gist.create_gist in jupyter_notebook_config.json (in your .jupyter directory)
  4. Delete any references to gist in notebook.json (in .jupyter/nbconfig)

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.