diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1b05c22 --- /dev/null +++ b/.gitignore @@ -0,0 +1,11 @@ +.npm +.yarn +.cache +.wget-hsts +.rnd +.config +.local +*.egg-info +.jupyter +.bash_logout +.profile diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..db4ec63 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,12 @@ +{ + "files.exclude": { + "**/.bashrc": true, + "**/.cache": true, + "**/.config": true, + "**/.jupyter": true, + "**/.local": true, + "**/.npm": true, + "**/.yarn": true, + "**/jupyter_vscode_proxy.egg-info": true + } +} diff --git a/README.md b/README.md index 58798f1..71601e0 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ -# vscode-binder -VS Code on Binder +# VS Code on Binder + +VS Code on Binder, because sometimes you need a real editor. + +Try it: [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/betatim/vscode-binder/master?urlpath=%2Fvscode) diff --git a/jupyter_vscode_proxy/__init__.py b/jupyter_vscode_proxy/__init__.py index 025bbc9..a3fa73f 100644 --- a/jupyter_vscode_proxy/__init__.py +++ b/jupyter_vscode_proxy/__init__.py @@ -23,6 +23,8 @@ def _get_vscode_cmd(port): 'command': _get_vscode_cmd, 'launcher_entry': { 'title': 'VS Code', - 'icon_path': os.path.join(os.path.dirname(os.path.abspath(__file__)), 'icons', 'vscode.svg') + 'icon_path': os.path.join(os.path.dirname(os.path.abspath(__file__)), + 'icons', + 'vscode.svg') } -} + } diff --git a/postBuild b/postBuild index b93cdfd..bb3cbfe 100644 --- a/postBuild +++ b/postBuild @@ -1,7 +1,8 @@ #!/bin/bash -# Enable the proxy extensionn +# Enable the proxy extension in notebook and lab jupyter serverextension enable --py jupyter_server_proxy +jupyter labextension install jupyterlab-server-proxy # Download and install VS Code server wget -q https://github.com/codercom/code-server/releases/download/1.32.0-245/code-server-1.32.0-245-linux-x64.tar.gz diff --git a/requirements.txt b/requirements.txt index 1bd3e76..2522fdf 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,3 @@ numpy jupyter-server-proxy +jupyterlab>0.34.9