TypeFox / monaco-languageclient

Repo hosts npm packages for monaco-languageclient, vscode-ws-jsonrpc, monaco-editor-wrapper, @typefox/monaco-editor-react and monaco-languageclient-examples
https://www.npmjs.com/package/monaco-languageclient
MIT License
992 stars 171 forks source link

How to use it in ipynb multi-cell situation? #662

Closed FoSuCloud closed 1 month ago

FoSuCloud commented 1 month ago

Hello, will you provide examples of ipynb in the future?

FoSuCloud commented 1 month ago

I want to use multiple monaco instances as a model, how to use the same uri? Just like jupyter does

msujew commented 1 month ago

@FoSuCloud I'm not aware of how it's implemented in Jupyter, but in VSCode, every cell is its own document. Cells don't share document data between them. Note that VSCode uses a specificially crafted cell uri that looks like vscode-notebook-cell://<file>#<cell-handle>.

FoSuCloud commented 1 month ago

@FoSuCloud I'm not aware of how it's implemented in Jupyter, but in VSCode, every cell is its own document. Cells don't share document data between them. Note that VSCode uses a specificially crafted cell uri that looks like vscode-notebook-cell://<file>#<cell-handle>.

Thank you for your help!