Skip to content

Commit

Permalink
Merge pull request betatim#10 from xhochy/code-server-conda
Browse files Browse the repository at this point in the history
Install code-server via conda
  • Loading branch information
betatim authored Feb 28, 2020
2 parents f30edc5 + 322ce9b commit ecd5fd8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 16 deletions.
2 changes: 0 additions & 2 deletions apt.txt

This file was deleted.

6 changes: 6 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
channels:
- conda-forge
dependencies:
- numpy
- jupyter-server-proxy
- code-server
12 changes: 1 addition & 11 deletions postBuild
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.
3 changes: 0 additions & 3 deletions requirements.txt

This file was deleted.

0 comments on commit ecd5fd8

Please sign in to comment.