Skip to content
Renderers and renderer extensions for JupyterLab
Branch: master
Clone or download
gnestor Merge pull request #191 from gnestor/msa-css
Fix build issue caused by JS comment in msa CSS
Latest commit 0c1af9b May 1, 2019

README.md

Jupyter Renderers

Binder

This is a monorepo that consists of generic renderers for common file types and mime types as well as renderer extensions for JupyterLab.

Packages

Name Mime types File extensions Info
fasta-extension application/vnd.fasta.fasta .fasta Version Downloads
geojson-extension application/geo+json .geojson, .geo.json Version Downloads
katex-extension N/A N/A Version Downloads
mathjax3-extension N/A N/A Version Downloads
plotly-extension application/vnd.plotly.v1+json .plotly, .plotly.json Version Downloads
vega2-extension application/vnd.vega.v2+json, application/vnd.vegalite.v1+json .vg, .vl, .vg.json, .vl.json, .vega, .vegalite Version Downloads
vega3-extension application/vnd.vega.v3+json, application/vnd.vegalite.v2+json .vg, .vl, .vg.json, .vl.json, .vega, .vegalite Version Downloads

Install

  • fasta-extension: jupyter labextension install @jupyterlab/fasta-extension
  • geojson-extension: jupyter labextension install @jupyterlab/geojson-extension
  • katex-extension: jupyter labextension install @jupyterlab/katex-extension
  • mathjax3-extension: jupyter labextension install @jupyterlab/mathjax3-extension
  • plotly-extension: jupyter labextension install @jupyterlab/plotly-extension
  • vega2-extension: jupyter labextension install @jupyterlab/vega2-extension
  • vega3-extension: jupyter labextension install @jupyterlab/vega3-extension

Contributing

If you would like to contribute to the project, please read our contributor documentation.

JupyterLab follows the official Jupyter Code of Conduct.

Requirements

Install

The jlpm command is JupyterLab's pinned version of yarn that is installed with JupyterLab. You may use yarn or npm in lieu of jlpm below.

git clone https://github.com/jupyterlab/jupyter-renderers.git
cd jupyter-renderers
jlpm
jlpm build

Link extensions with JupyterLab

Link geojson-extension:

jupyter labextension link packages/geojson-extension

Link all extensions in packages:

jlpm run link

Rebuilding extensions

After making changes to the source packages, the packages must be rebuilt:

# Rebuild the source
jlpm build

# Rebuild the JupyterLab staging directory
jupyter lab build

You may also watch the jupyter-renderers directory for changes and automatically rebuild:

# In one terminal tab, watch the jupyter-renderers directory
jlpm watch

# In another terminal tab, run jupyterlab with the watch flag
jupyter lab --watch

Publishing packages

jlpm run publish
# If publishing a package for the first time
npm access public @jupyterlab/<extension name>
You can’t perform that action at this time.