forked from jupyterlab/jupyterlab-demo
-
Notifications
You must be signed in to change notification settings - Fork 3
/
INSTALL.txt
67 lines (50 loc) · 2.19 KB
/
INSTALL.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
export DEMO_ENV_NAME=jlabdemo
# Create a new environment
conda create -y -n $DEMO_ENV_NAME python=3.5 notebook pandas=0.19.2 matplotlib=2.0.0 scikit-image=0.12.3
source activate $DEMO_ENV_NAME
# Install the environment kernel
ipython kernel install --name $DEMO_ENV_NAME --display-name $DEMO_ENV_NAME --sys-prefix
# Install most recent notebook
conda install -y -c conda-forge notebook=4.4.1
# Install jupyterlab
conda install -y -c conda-forge jupyterlab=0.16.2
# Install ipywidgets
conda install -y -c conda-forge ipywidgets=6.0.0
# Install the jupyterlab widgets plugin
pip install jupyterlab_widgets==0.6.15
jupyter labextension install --sys-prefix --py jupyterlab_widgets
jupyter labextension enable jupyterlab_widgets --py --sys-prefix
# GeoJSON map viewer
pip install jupyterlab_geojson==0.4.0
jupyter labextension install --sys-prefix --py jupyterlab_geojson
jupyter labextension enable --sys-prefix --py jupyterlab_geojson
# Start up either the notebook or lab. Make sure to use the environment kernel in notebooks!
# jupyter notebook
# jupyter lab
# NOTE: if you have version 4.3.1 of Jupyter Notebook, you *must* call it as
# jupyter notebook --NotebookApp.disable_check_xsrf=True
# or else nothing will work.
# OPTIONAL
# bqplot
pip install --pre bqplot=0.9.0b10
jupyter nbextension install --sys-prefix --py bqplot
jupyter nbextension enable --sys-prefix --py bqplot
jupyter labextension install --sys-prefix --py bqplot
jupyter labextension enable --sys-prefix --py bqplot
# pythreejs
pip install pythreejs==0.3.0
jupyter nbextension install --sys-prefix --py --symlink pythreejs
jupyter nbextension enable --sys-prefix --py pythreejs
jupyter labextension install --sys-prefix --py --symlink pythreejs
jupyter labextension enable --sys-prefix --py pythreejs
# dask
conda install -c conda-forge -c bokeh dask distributed bokeh
pip install dask-labextensions
jupyter labextension install --symlink --py --sys-prefix dask_labextension
jupyter labextension enable --py --sys-prefix dask_labextension
# graphviz (for dask)
brew install graphviz
pip install graphviz # conda install graphviz doesn't seem to work
# To remove the environment
# source deactivate $DEMO_ENV_NAME
# conda remove --all -n $DEMO_ENV_NAME