Protected
_activeProtected
_adapterSignal emitted when the adapter is connected.
Private
_cellMapping of cell to editor accessor to ensure accessor uniqueness.
Protected
_disposedSignal emitted when the adapter is disposed.
Protected
_editorSignal emitted when an editor is changed.
Protected
_editorSignal emitted when an editor is removed.
Private
_editorA map between the editor accessor and the containing cell
Private
_languageMetadata of the notebook
Private
_readyPrivate
_typeReadonly
editorThe wrapped Notebook
widget.
Protected
optionsGet the activated CM editor.
The LSP document and connection manager instance.
Get current path of the document.
Get the list of CM editor with its type in the document,
Check if the document contains multiple editors
The virtual document is connected or not
Check if the adapter is disposed
Get the language identifier of the document
Get the file extension of the document.
Get the mime type of the document.
The translator provider.
Internal virtual document of the adapter.
Get the ID of the internal widget.
Get the inner HTMLElement of the document widget.
Private
_activeHandle the cell changed event
The notebook that emitted event
Changed cell.
Private
_connectConnect the cell changed event to its handler
The notebook that emitted event.
Private
_getGet the cell at the cursor position of the virtual document.
Position in the virtual document.
Private
_getGet the cell editor and add new ones to the mappings.
Cell widget
Cell editor accessor
Private
_updateProtected
connectOpens a connection for the document. The connection may or may not be initialized, yet, and depending on when this is called, the client may not be fully connected.
a VirtualDocument
Optional
sendOpen: booleanwhether to open the document immediately
Get the index of editor from the cursor position in the virtual document.
the position of cursor in the virtual document.
This is error-prone and will be removed in JupyterLab 5.0, use getEditorIndex()
with virtualDocument.getEditorAtVirtualLine(position)
instead.
Get the wrapper of input editor.
instance of the code editor
Update the virtual document on cell changing event.
Observable list of changed cells
Changed data
Protected
initProtected
initProtected
language_Get the metadata of notebook.
Protected
onProtected
onHandler for opening a document contained in a parent document. The assumption is that the editor already exists for this, and as such the document should be queued for immediate opening.
the VirtualDocument that contains the VirtualDocument in another language
information about the foreign VirtualDocument
Callback on kernel changed event, it will disconnect the document with the language server and then reconnect.
Session context of changed kernel
Changed data
Protected
onCallback on document saved event.
Protected
reload
Signal emitted when the active editor have changed.