From 6e2db7f47343b7de5ab9583ad7e213717adbc9d9 Mon Sep 17 00:00:00 2001 From: Mario Buikhuizen Date: Wed, 8 Apr 2020 13:43:05 +0200 Subject: [PATCH 1/3] refactor: use urlpath instead of workspace to open a notebook --- README.md | 2 +- binder/default.json | 1 - binder/postBuild | 5 +---- 3 files changed, 2 insertions(+), 6 deletions(-) delete mode 100644 binder/default.json diff --git a/README.md b/README.md index 8eb4df0..ad6b255 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.svg)](https://mybinder.org/v2/gh/QuantStack/jupyterlab-snippets/stable?urlpath=lab/tree/binder/empty.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/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 From b5e8104c2e866786d233045cc5d4716699f01558 Mon Sep 17 00:00:00 2001 From: Mario Buikhuizen Date: Wed, 8 Apr 2020 13:44:53 +0200 Subject: [PATCH 2/3] docs: fix typo in binder badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ad6b255..10cce4a 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/tree/binder/empty.ipynb) +[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/QuantStack/jupyterlab-snippets/stable?urlpath=lab/tree/binder/empty.ipynb) Snippets Extension for JupyterLab. From 406046d7a1ea7925cd08d15b25c53dc5893da768 Mon Sep 17 00:00:00 2001 From: Mario Buikhuizen Date: Wed, 8 Apr 2020 13:47:15 +0200 Subject: [PATCH 3/3] docs: rename notebook --- README.md | 2 +- binder/{empty.ipynb => notebook.ipynb} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename binder/{empty.ipynb => notebook.ipynb} (100%) diff --git a/README.md b/README.md index 10cce4a..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)](https://mybinder.org/v2/gh/QuantStack/jupyterlab-snippets/stable?urlpath=lab/tree/binder/empty.ipynb) +[![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/empty.ipynb b/binder/notebook.ipynb similarity index 100% rename from binder/empty.ipynb rename to binder/notebook.ipynb