diff --git a/README.md b/README.md index 8eb4df0..920b37a 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ ![Github Actions Status](https://github.com/QuantStack/jupyterlab-snippets/workflows/Build/badge.svg) [![Version](https://img.shields.io/pypi/v/jupyterlab-snippets.svg)](https://pypi.python.org/project/jupyterlab-snippets) [![Conda Version](https://img.shields.io/conda/vn/conda-forge/jupyterlab-snippets.svg)](https://anaconda.org/conda-forge/jupyterlab-snippets) -[![Binder](https://mybinder.org/badge_logo.svg.svg)](https://mybinder.org/v2/gh/QuantStack/jupyterlab-snippets/stable?urlpath=lab/workspaces/default) +[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/QuantStack/jupyterlab-snippets/stable?urlpath=lab/tree/binder/notebook.ipynb) Snippets Extension for JupyterLab. diff --git a/binder/default.json b/binder/default.json deleted file mode 100644 index 4a7e608..0000000 --- a/binder/default.json +++ /dev/null @@ -1 +0,0 @@ -{"data":{"layout-restorer:data":{"main":{"dock":{"type":"tab-area","currentIndex":0,"widgets":["notebook:empty.ipynb"]},"mode":"multiple-document","current":"notebook:empty.ipynb"},"left":{"collapsed":false,"current":"filebrowser","widgets":["filebrowser","running-sessions","command-palette","tab-manager"]},"right":{"collapsed":true,"widgets":[]}},"notebook:empty.ipynb":{"data":{"path":"empty.ipynb","factory":"Notebook"}}},"metadata":{"id":"/lab/workspaces/default"}} diff --git a/binder/empty.ipynb b/binder/notebook.ipynb similarity index 100% rename from binder/empty.ipynb rename to binder/notebook.ipynb diff --git a/binder/postBuild b/binder/postBuild index 9606c58..412312e 100644 --- a/binder/postBuild +++ b/binder/postBuild @@ -19,14 +19,11 @@ npm run convert ./jupyter_boilerplate/snippets_submenus_python/h5py.js $SNIPPET_ npm run convert ./jupyter_boilerplate/snippets_submenus_python/numba.js $SNIPPET_DIR .py npm run convert ./jupyter_boilerplate/snippets_submenus_python/sympy.js $SNIPPET_DIR .py -cd .. +cd ../binder ln -s $SNIPPET_DIR snippets_symlink # prepare Jupyter Lab -cp binder/empty.ipynb . -jupyter lab workspaces import binder/default.json - jupyter lab build