From 18e3d0d87e293c85ed273743a77e55c15d36562e Mon Sep 17 00:00:00 2001 From: Dou Date: Mon, 9 Mar 2020 17:43:10 +0100 Subject: [PATCH] Add Binder tutorial --- README.md | 12 +++++++++++- postBuild | 6 ++++++ requirements.txt | 4 ++++ 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 postBuild create mode 100644 requirements.txt diff --git a/README.md b/README.md index b4fa4f4..4afdd42 100644 --- a/README.md +++ b/README.md @@ -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`: diff --git a/postBuild b/postBuild new file mode 100644 index 0000000..baf6c87 --- /dev/null +++ b/postBuild @@ -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 diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..2878d22 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,4 @@ +ipywidgets==7.5.0 +appmode==0.6.0 +IPython==7.8.0 +widget-periodictable