Skip to main content

Convert Jupyter Notebooks into runnable HTML files with Juniper (https://github.com/ines/juniper).

Project description

sphinx-juniper

Integrate interactive code blocks into your documentation with Juniper and Binder.

Install

To install sphinx-juniper first clone and install it:

pip install sphinx-juniper

Then, add it to your Jupyter Book's _config.yml file:

(to use all default values)

sphinx:
  extra_extensions:
    - sphinx_juniper
  config:
    juniper: true

To override any/all defaults:

sphinx:
  extra_extensions:
    - sphinx_juniper
  config:
    juniper:
      url: https://mybinder.org  # BinderHub instance
      repo: ashtonmv/python_binder  # Github repository for Binder image
      theme: monokai  # Styling (only monokai and material supported for now)
      isolateCells: false  # Whether to share variables between cells
      useStorage: true  # Cache the kernel connection between page loads
      ...
      etc.
      ...

Similar to BinderHub links and Colab links, sphinx-juniper only acts on Ipython Notebooks included in your documentation! It adds a button to the "launch_buttons" (the one with a rocket on it) dropdown menu for these pages at the top. Clicking this button will start the connection to the kernel you've configured based on the settings in _config.yml above.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sphinx-juniper-0.0.4.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sphinx_juniper-0.0.4-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file sphinx-juniper-0.0.4.tar.gz.

File metadata

  • Download URL: sphinx-juniper-0.0.4.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.7.8 Darwin/19.6.0

File hashes

Hashes for sphinx-juniper-0.0.4.tar.gz
Algorithm Hash digest
SHA256 60d692ed7bbe355af9c5f5dbb42cef930e90de9f6c4b14d9b6258d1a59b3241d
MD5 b8990084a39b86141f473140b8f78d24
BLAKE2b-256 a46d8be7e24f7f6f80c1b8a02453b60b3bd26a9e289408bcc0a865617571f0e9

See more details on using hashes here.

File details

Details for the file sphinx_juniper-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: sphinx_juniper-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.7.8 Darwin/19.6.0

File hashes

Hashes for sphinx_juniper-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8f9dcd5961fe66088b08afd0d04b7f07675423a706ea174c7a9930a42879d8f8
MD5 743c391b75c0d6ca2b602f7fee8135cf
BLAKE2b-256 8490e3d59ef78d9a37b45601355cb35e4baf12fe71e596b6edae6477fe52dde9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page