A Custom Jupyter Widget Library


Keywords
Jupyter, Widgets, IPython, binder, binder-ready, biology, hacktoberfest, heatmap, javascript, jupyter-widgets, python, regl, visualization, webgl
License
BSD-3-Clause
Install
pip install clustergrammer2==0.1.0a0

Documentation

Clustergramer2

Build Status codecov

ccle_gif

An interactive WebGL heatmap Jupyter widget built using the widget-ts-cookiecutter library.

Run Clustergrammer2 on MyBinder

badge

badge

Click the MyBinder badges above to launch Clustergrammer2 example Jupyter Notebooks. Also see the Clustergrammer2-Examples repo for more examples.

JupyterCon 2018 Presentation

Clustergrammer JupyterCon 2018

The Clustergrammer project was recently presented at JupyterCon 2018 (see slides).

Installation

A typical installation requires the following commands to be run:

pip install clustergrammer2
jupyter nbextension enable --py --sys-prefix clustergrammer2

Optionally: --sys-prefix|--user|--system

Or, if you use jupyterlab:

pip install clustergrammer2
jupyter labextension install @jupyter-widgets/jupyterlab-manager

Embedding the widget into static HTML Notebooks

jupyter nbconvert --to html notebook.ipynb

Development and Releasing new Versions

During development run npm run watch for real time updates.

Updating versions

Update the versions in the following files

JavaScript
  • package.json
  • widget.ts

Python

  • _version.py
  • example.py
  • requirements.txt
  • _frontend.py

Webpack

Run the following commands to build the JavaScript bundle:

npm run build
npm run build:nbextension
npm run build:labextension

Publish to npm using

npm publish

These instructions are based on the release instructions from the jupyter-widgets/widget-ts-cookiecutterREADME.

Bundling the Python Package

Next, bundle the python package using

python setup.py sdist bdist_wheel

Then, upload the PYPI:

twine upload dist/*