Skip to content

Commit

Permalink
Add Binder tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
dou-du committed Mar 9, 2020
1 parent 2bfdc31 commit 18e3d0d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
# widget-periodictable

A jupyter widget to select chemical elements from the periodic table.
A jupyter widget to select chemical elements from the periodic table. This is a update version of the
widget from:

https://github.com/aiidalab/aiidalab-widget-periodictable

,which support both Jupyter notebook and JupyterLab.


![periodic table](./periodictable.png)

## Usage and try it on Binder

[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/osscar-org/widget-periodictable/master?urlpath=%2Flab%2Ftree%2Fexamples%2Fintroduction.ipynb)

## Installation

You can install using `pip`:
Expand Down
6 changes: 6 additions & 0 deletions postBuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
jupyter labextension install @jupyter-widgets/jupyterlab-manager
jupyter nbextension enable --py --sys-prefix appmode
jupyter serverextension enable --py --sys-prefix appmode
jupyter nbextension enable --py widgetsnbextension
jupyter lab build
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ipywidgets==7.5.0
appmode==0.6.0
IPython==7.8.0
widget-periodictable

0 comments on commit 18e3d0d

Please sign in to comment.