Skip to content

Commit

Permalink
Tweak me
Browse files Browse the repository at this point in the history
  • Loading branch information
betatim committed Mar 13, 2019
1 parent 1b3b390 commit 66cf611
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 5 deletions.
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.npm
.yarn
.cache
.wget-hsts
.rnd
.config
.local
*.egg-info
.jupyter
.bash_logout
.profile
12 changes: 12 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -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
}
}
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)
6 changes: 4 additions & 2 deletions jupyter_vscode_proxy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
}
}
3 changes: 2 additions & 1 deletion postBuild
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
numpy
jupyter-server-proxy
jupyterlab>0.34.9

0 comments on commit 66cf611

Please sign in to comment.