Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web based VSCODE example #78

Merged
merged 5 commits into from
Dec 30, 2024
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions samples/code-server/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# [VSCODE web based](https://github.com/coder/code-server) with jupyter

## Install vscode

> Run in jupyter terminal

```bash
curl -fsSL https://code-server.dev/install.sh | sh
```

## Setting up server parameters

> In the server config, you need to add the following lines

**jupyter_lab_config.py**

```py
from tornado import websocket
websocket_max_message_size = 1048 * 1024 * 1024
# fix module
setattr(websocket, "_default_max_message_size", websocket_max_message_size)
trungleduc marked this conversation as resolved.
Show resolved Hide resolved
# fix config
c.LabApp.tornado_settings = {"websocket_max_message_size": websocket_max_message_size}
```

## Setting up jupyter_app_launcher with open in new TAB

Open [juyter_app_launcher config file](https://jupyter-app-launcher.readthedocs.io/en/latest/usage.html#configuration-file-location)

> Add application launch parameters

```
- title: Open VSCODE
description: Open web based VSCODE
icon: /usr/lib/code-server/lib/vscode/out/media/code-icon.svg
source: http://localhost:$PORT/
cwd: ./
type: local-server
args:
- code-server
- --auth=none
- --app-name='Remote VSCode Server'
- --disable-telemetry
- --disable-update-check
- --disable-workspace-trust
- --bind-addr=0.0.0.0:$PORT
catalog: VSCODE
```