You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/integrations/vscode/index.mdx
+18-18Lines changed: 18 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,37 +2,37 @@ import ModalImage from "react-modal-image";
2
2
3
3
# 🚧 VS Code
4
4
5
+
The `datalayer-notebook` extension for VS Code allows you to edit Jupyer Notebooks files (`ipynb` extensions).
6
+
7
+
The extensions is available in the [Visual Studio Code Marketplace](https://marketplace.visualstudio.com/items?itemName=datalayer.datalayer-jupyter-vscode).
- Connect to a Jupyter Server by providing its URL with auth token; transfer http request and websocket messages
16
-
- Running code
17
+
- Load a Notebook.
18
+
- Display a Notebook.
19
+
- Connect to a Jupyter Server by providing its URL with auth token; transfer http request and websocket messages.
20
+
- Run code.
21
+
- IPyWidgets support.
17
22
18
23
## Not Implemented
19
24
20
-
- Saving the document
21
-
- Notifying of updates to have a UI feedback the document is in dirty state
22
-
- ipywidgets support
25
+
- Save the Notebook.
26
+
- Notifying of updates to have a UI feedback the document is in dirty state.
23
27
24
28
## Known Limitations
25
29
26
-
- Styling:
27
-
- No connection between dark/light vs code theme and notebook theme
30
+
Styling
31
+
- No connection between dark/light vs code theme and notebook theme
32
+
- No resizing with the panel
33
+
- Button to select the runtime is not displayed in a toolbar that stays visible - No connection between dark/light vs code theme and notebook theme
28
34
- No resizing with the panel
29
35
- Button to select the runtime is not displayed in a toolbar that stays visible
30
-
- Websocket binary support: for now we forbid the usage of the newer protocol v1.kernel.websocket.jupyter.org. When using it, the message data are failing to be serialized to be transferred from the webview to the extension. And when receiving it, the deserialization fails. The deserialization error may be related to an incorrect binaryType that is not handle in the current code; but in JupyterLab it is forced to 'arraybuffer' for kernel websocket.
31
-
32
-
## Architecture
33
-
34
-
The editor is displayed in a webview - aka a iframe. That iframe has Content Security Policies that have been fully relaxed for styling :disappointed: but not for scripts. Not allowing any script will likely induce issue especially with advanced output renderer like plotly or ipywidgets. That policy may be relaxed (but this is going against VS Code recommendation).
35
36
36
-
The webview being in a separate world, connecting to the server is done through the extension. This requires to proxy http-request and websocket messages to and from the webviews. This is tricky as it requires serialization handled by vscode. And despite using a so called `postMessage` method, the behavior is not matching the Web API `postMessage` especially when transferring complex objects.
37
37
38
-
The interface point is inspired by JupyterLite approach; aka we define a custom `fetch` method and `WebSocket` class in the server settings used by the service manager.
38
+
Websocket binary support: for now we forbid the usage of the newer protocol v1.kernel.websocket.jupyter.org. When using it, the message data are failing to be serialized to be transferred from the webview to the extension. And when receiving it, the deserialization fails. The deserialization error may be related to an incorrect binaryType that is not handle in the current code; but in JupyterLab it is forced to 'arraybuffer' for kernel websocket.
Copy file name to clipboardExpand all lines: packages/vscode/README.md
+29-2Lines changed: 29 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,33 @@
2
2
3
3
[](https://github.com/sponsors/datalayer)
4
4
5
-
# Jupyter UI for Visual Studio Code
5
+
# Jupyter Notebook for Visual Studio Code
6
6
7
-
This is the README for the `datalayer-notebook` extension.
7
+
This [Visual Studio Code](https://code.visualstudio.com) extension allows you to edit [Jupyter](https://jupyter.org) Notebooks files (`ipynb` extensions) and is publically available in the [VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=datalayer.datalayer-jupyter-vscode).
- Connect to a Jupyter Server by providing its URL with auth token; transfer http request and websocket messages.
16
+
- Run code.
17
+
- IPyWidgets support.
18
+
19
+
## Not Implemented
20
+
21
+
- Save the Notebook.
22
+
- Notifying of updates to have a UI feedback the document is in dirty state.
23
+
24
+
## Known Limitations
25
+
26
+
Styling
27
+
- No connection between dark/light vs code theme and notebook theme
28
+
- No resizing with the panel
29
+
- Button to select the runtime is not displayed in a toolbar that stays visible - No connection between dark/light vs code theme and notebook theme
30
+
- No resizing with the panel
31
+
- Button to select the runtime is not displayed in a toolbar that stays visible
32
+
33
+
34
+
Websocket binary support: for now we forbid the usage of the newer protocol v1.kernel.websocket.jupyter.org. When using it, the message data are failing to be serialized to be transferred from the webview to the extension. And when receiving it, the deserialization fails. The deserialization error may be related to an incorrect binaryType that is not handle in the current code; but in JupyterLab it is forced to 'arraybuffer' for kernel websocket.
0 commit comments