forked from betatim/vscode-binder
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request betatim#10 from xhochy/code-server-conda
Install code-server via conda
- Loading branch information
Showing
4 changed files
with
7 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- numpy | ||
- jupyter-server-proxy | ||
- code-server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,11 @@ | ||
#!/bin/bash | ||
|
||
CODE_SERVER_VERSION="2.1692-vsc1.39.2" | ||
|
||
# Enable the proxy extension in notebook and lab | ||
jupyter serverextension enable --py jupyter_server_proxy | ||
jupyter labextension install jupyterlab-server-proxy | ||
jupyter lab build | ||
|
||
# Download and install VS Code server | ||
wget -q -O code-server.tar.gz https://github.com/cdr/code-server/releases/download/${CODE_SERVER_VERSION}/code-server${CODE_SERVER_VERSION}-linux-x86_64.tar.gz | ||
mkdir -p ~/.local/bin | ||
tar -xvf code-server.tar.gz -C ~/.local/bin --strip-components=1 | ||
rm -rf code-server.tar.gz | ||
|
||
wget https://github.com/microsoft/vscode-python/releases/download/2019.10.44104/ms-python-release.vsix | ||
code-server --install-extension ms-python-release.vsix | ||
rm -rf ms-python-release.vsix | ||
code-server --install-extension ms-python.python | ||
|
||
# Install the VS code proxy | ||
pip install -e. |
This file was deleted.
Oops, something went wrong.