Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/jupyterlab/jupyterlab
/ functions
Functions
8,286 in github.com/jupyterlab/jupyterlab
⨍
Functions
8,286
◇
Types & classes
2,630
↳
Endpoints
19
↓ 440 callers
Method
connect
* Initialize a connection over a web socket that speaks the LSP protocol
packages/lsp/src/ws-connection/types.ts:54
↓ 435 callers
Method
emit
* Post an event request to be emitted by the event bus.
packages/services/src/event/index.ts:188
↓ 416 callers
Method
push
* Add a new item to the bottom of history. * * @param item The item being added to the bottom of history. * * #### Notes * If the item
packages/console/src/history.ts:61
↓ 391 callers
Method
__
* Shorthand for gettext. * * @param msgid - The singular string to translate. * @param args - Any additional values to use with interpolation
packages/translation/src/gettext.ts:315
↓ 356 callers
Method
dispose
* Dispose of the resources held by the database.
packages/observables/src/modeldb.ts:246
↓ 344 callers
Method
resolve
* Given an incomplete (unresolved) completion item, resolve it by adding * all missing details, such as lazy-fetched documentation. * * @para
packages/completer/src/tokens.ts:121
↓ 318 callers
Method
get
* Editor getter
packages/debugger/src/tokens.ts:785
↓ 292 callers
Method
load
* Load the theme. * * @returns A promise that resolves when the theme has loaded.
packages/apputils/src/tokens.ts:237
↓ 253 callers
Method
forEach
* Iterate through each object in the pool. * * @param fn - The function to call on each object.
packages/statedb/src/interfaces.ts:145
↓ 231 callers
Method
addClass
()
galata/test/jupyterlab/notebook-toolbar.test.ts:37
↓ 191 callers
Method
error
* Helper function for a toast with error style
packages/apputils-extension/src/notificationplugin.tsx:871
↓ 176 callers
Method
add
* Add a command item to the launcher, and trigger re-render event for parent * widget. * * @param options - The specification options for a l
packages/launcher/src/tokens.ts:37
↓ 156 callers
Method
set
* Set a single setting. * * @param key - The name of the setting being set. * * @param value - The value of the setting. *
packages/settingregistry/src/tokens.ts:598
↓ 148 callers
Method
disconnect
* Disconnect the connection to the language server of the requested * language.
packages/lsp/src/tokens.ts:468
↓ 147 callers
Method
filter
(item: IRunningSessions.IRunningItem)
packages/running/src/index.tsx:347
↓ 145 callers
Method
keys
* Get a list of the keys in the map. * * @returns - a list of keys.
packages/observables/src/observablemap.ts:63
↓ 143 callers
Method
warn
* Helper function for a toast with warning style
packages/apputils-extension/src/notificationplugin.tsx:883
↓ 125 callers
Method
evaluate
* Evaluate an expression.
packages/debugger/src/tokens.ts:95
↓ 109 callers
Method
execute
* Execute the current prompt. * * @param force - Whether to force execution without checking code * completeness. * * @param timeout -
packages/console/src/widget.ts:391
↓ 109 callers
Method
waitFor
* Wait for a condition to fulfill or for a certain time * * @param condition Condition or timeout to wait for * @param timeout Timeout
galata/extension/src/global.ts:261
↓ 104 callers
Method
update
* Update a debug handler for the given widget, and * handle kernel changed events. * * @param widget The widget to update. * @para
packages/debugger/src/handler.ts:688
↓ 98 callers
Function
test
(node: HTMLElement)
packages/running-extension/src/kernels.tsx:205
↓ 97 callers
Method
remove
* Remove a single setting. * * @param key - The name of the setting being removed. * * @returns A promise that resolves when the s
packages/settingregistry/src/tokens.ts:579
↓ 93 callers
Method
parse
( text: string, parseOptions?: ParseOptions | undefined )
packages/mermaid/test/utils.ts:77
↓ 91 callers
Method
create
* Create an empty workspace.
packages/workspaces/src/tokens.ts:55
↓ 86 callers
Method
getSource
* Retrieve the content of a source file. * * @param source The source object containing the path to the file.
packages/debugger/src/tokens.ts:109
↓ 83 callers
Method
addWidget
* Add a widget to the panel. * * If the widget is already added, it will be moved.
packages/application/src/shell.ts:2136
↓ 80 callers
Method
toString
* Serialize the model to a string.
packages/docregistry/src/registry.ts:866
↓ 76 callers
Method
delete
* Delete a file. * * @param localPath - The path to the file. * * @returns A promise which resolves when the file is deleted.
packages/services/src/contents/index.ts:602
↓ 76 callers
Method
focus
* Brings browser focus to this editor text.
packages/codeeditor/src/editor.ts:444
↓ 75 callers
Method
has
* Whether the `IModelDB` has an object at this path. * * @param path the path for the object. * * @returns a boolean for whether an object
packages/observables/src/modeldb.ts:169
↓ 73 callers
Method
clearData
()
packages/testing/src/jest-data-transfer-mock.ts:144
↓ 72 callers
Method
reject
* Reject the current dialog with a default reject value. * * #### Notes * Will be a no-op if the dialog is not shown.
packages/apputils/src/dialog.tsx:224
↓ 71 callers
Method
addItem
(options: NotebookTools.IAddOptions)
packages/notebook/src/tokens.ts:45
↓ 71 callers
Method
find
* Returns an array of editors for a source matching the current debug * session by iterating through all the widgets in each of the supported
packages/debugger/src/tokens.ts:456
↓ 69 callers
Method
shutdown
* Shut down a kernel by id. * * @param id - The id of the target kernel. * * @returns A promise that resolves when the operation is comple
packages/services/src/kernel/kernel.ts:815
↓ 67 callers
Method
attach
()
packages/apputils/src/commandpalette.ts:54
↓ 67 callers
Method
start
* Start a new debug session.
packages/debugger/src/tokens.ts:437
↓ 65 callers
Method
save
* Save the document contents to disk.
packages/docregistry/src/registry.ts:985
↓ 65 callers
Method
sort
(a: T, b: T)
packages/ui-components/src/components/table.tsx:46
↓ 64 callers
Method
log
* Log an output to logger. * * @param log - The output to be logged.
packages/logconsole/src/tokens.ts:182
↓ 64 callers
Function
showDialog
( options: Partial<Dialog.IOptions<T>> = {} )
packages/apputils/src/dialog.tsx:29
↓ 63 callers
Method
activate
* Activate the command palette for user input.
packages/apputils/src/tokens.ts:40
↓ 63 callers
Method
values
* Get a list of the values in the map. * * @returns - a list of values.
packages/observables/src/observablemap.ts:70
↓ 55 callers
Function
func
()
packages/docregistry/test/context.spec.ts:274
↓ 54 callers
Method
sendMessage
* Send a kernel message with sensible defaults.
packages/services/test/utils.ts:453
↓ 53 callers
Method
open
* Open a read-only editor in the main area. * * @param params - The editor open parameters.
packages/debugger/src/tokens.ts:463
↓ 52 callers
Function
pjoin
Join paths to create a real path.
jupyterlab/commands.py:136
↓ 50 callers
Method
close
* Close the comm. * * @param data - The data to send to the server on opening. * * @param metadata - Additional metadata for the message.
packages/services/src/kernel/kernel.ts:1029
↓ 48 callers
Method
count
* Total number of notifications.
packages/apputils/src/notification.ts:32
↓ 48 callers
Method
fetch
* Retrieve an item from the data connector. * * @param id - The identifier used to retrieve an item. * * @returns A promise that bears a d
packages/statedb/src/interfaces.ts:41
↓ 46 callers
Method
get
* Get an item for the specified key.
packages/attachments/src/model.ts:51
↓ 45 callers
Method
initialize
* Initialize the session context. * * @returns A promise that resolves with whether to ask the user to select a kernel. * * #### Notes
packages/apputils/src/sessioncontext.tsx:52
↓ 43 callers
Method
getOption
* Get a config option for the terminal.
packages/terminal/src/tokens.ts:41
↓ 43 callers
Method
getState
* Get the state of the text editor at the given position.
packages/completer/src/handler.ts:188
↓ 42 callers
Method
items
* Return an iterator of launcher items.
packages/launcher/src/tokens.ts:51
↓ 42 callers
Method
uploadFile
* Upload a file to JupyterLab. * * Note: the destinationPath is the filepath on the server. * * @param sourcePath Filepath to upload *
galata/src/contents.ts:212
↓ 41 callers
Method
createNew
* Create a new `IModelDB` instance.
packages/observables/src/modeldb.ts:596
↓ 41 callers
Method
waitForTimeout
* Waits for the given `timeout` in milliseconds. * * @param timeout A timeout to wait for
galata/extension/src/tokens.ts:276
↓ 39 callers
Method
clickMenuItem
* Click on a menu item from its path * * @param path Menu item path
galata/src/helpers/menu.ts:290
↓ 39 callers
Method
invoke
* Invoke a tooltip.
packages/tooltip/src/tokens.ts:25
↓ 38 callers
Method
clear
* Clear the model.
packages/debugger/src/tokens.ts:1001
↓ 38 callers
Method
openByPath
* Open a notebook from its path * * The notebook do not need to exist in the current folder * * @param filePath Notebook path * @return
galata/src/helpers/notebook.ts:106
↓ 38 callers
Method
show
* Show the application splash screen. * * @param light - Whether to show the light splash screen or the dark one. * * @returns A disposabl
packages/apputils/src/tokens.ts:293
↓ 37 callers
Method
getCellLocator
* Get a cell locator * * @param cellIndex Cell index * @param name Notebook name * @returns Handle to the cell
galata/src/helpers/notebook.ts:627
↓ 36 callers
Method
forEach
* Iterate through each instance in the tracker. * * @param fn - The function to call on each instance.
packages/apputils/src/widgettracker.ts:79
↓ 36 callers
Function
resolve
(...parts: string[])
packages/coreutils/src/path.ts:101
↓ 35 callers
Method
run
* Run all cells of the currently active notebook * * @returns Action success status
galata/src/helpers/notebook.ts:378
↓ 34 callers
Method
hide
* Hide the side bar even if it contains widgets
packages/application/src/shell.ts:2534
↓ 34 callers
Method
load
* Load a plugin's settings into the setting registry. * * @param plugin - The name of the plugin whose settings are being loaded. * * @par
packages/settingregistry/src/tokens.ts:105
↓ 34 callers
Method
refresh
* Refresh the terminal session.
packages/terminal/src/tokens.ts:51
↓ 34 callers
Method
set
* Set the value of the specified key.
packages/attachments/src/model.ts:56
↓ 33 callers
Method
add
* Add a widget to the application shell. * * @param widget - The widget being added. * * @param area - Optional region in the shel
packages/application/src/frontend.ts:272
↓ 33 callers
Method
deselectAll
* Deselect all of the cells.
packages/notebook/src/widget.ts:2188
↓ 33 callers
Method
setCell
* Set the input source of a cell * * @param cellIndex Cell index * @param cellType Cell type * @param source Source * @returns Action s
galata/src/helpers/notebook.ts:1294
↓ 32 callers
Method
activateById
* Activates a widget inside the application shell. * * @param id - The ID of the widget being activated.
packages/application/src/frontend.ts:259
↓ 32 callers
Method
addCell
* Add a newly created cell.
packages/console/src/foreign.ts:183
↓ 32 callers
Method
goto
* Returns the main resource response. In case of multiple redirects, the navigation will resolve with the response of the * last redirect. *
galata/src/jupyterlabpage.ts:165
↓ 31 callers
Method
info
* Helper function for a toast with info style
packages/apputils-extension/src/notificationplugin.tsx:867
↓ 31 callers
Function
showErrorMessage
( title: string, error: string | Dialog.IError, buttons?: ReadonlyArray<Dialog.IButton> )
packages/apputils/src/dialog.tsx:44
↓ 30 callers
Method
localPath
* Given a path of the form `drive:local/portion/of/it.txt` * get the local part of it. * * @param path the path. * * @returns
packages/services/src/contents/index.ts:348
↓ 30 callers
Method
move
* Move a value from one index to another. * * @param fromIndex - The index of the element to move. * * @param toIndex - The index to move
packages/observables/src/observablelist.ts:113
↓ 30 callers
Function
simulate
(element: EventTarget, type: string, options?: any)
packages/testing/src/common.ts:41
↓ 29 callers
Method
filter
* Filter the instances in the tracker based on a predicate. * * @param fn - The function by which to filter.
packages/apputils/src/widgettracker.ts:86
↓ 29 callers
Method
isSelectedOrActive
* Whether a cell is selected or is the active cell.
packages/notebook/src/widget.ts:2178
↓ 29 callers
Method
setTimeout
* Set provider timeout. * * @param {number} timeout - value of timeout in millisecond.
packages/completer/src/manager.ts:68
↓ 29 callers
Function
signalToPromise
(signal: ISignal<T, U>)
packages/testing/src/common.ts:173
↓ 28 callers
Function
install_extension
Install an extension package into JupyterLab. The extension is first validated. Returns `True` if a rebuild is recommended, `False` otherwis
jupyterlab/commands.py:441
↓ 27 callers
Method
waitForCondition
* Wait for a condition to be fulfilled * * @param condition Condition to fulfill * @param timeout Maximal time to wait for the condition to b
galata/src/jupyterlabpage.ts:219
↓ 26 callers
Function
classes
( ...classes: ( | string | false | undefined | null | { [className: string]: any } )[]
packages/ui-components/src/utils.ts:32
↓ 26 callers
Method
getMetadata
* Get a metadata * * ### Notes * This returns a copy of the key value. * * @param key Metadata key
packages/cells/src/model.ts:111
↓ 26 callers
Method
sendRequest
* Send a debug request to the kernel.
packages/debugger/src/tokens.ts:429
↓ 26 callers
Function
sleep
(timeout: number)
packages/lsp/src/utils.ts:13
↓ 26 callers
Method
startNew
* Start a new kernel. * * @param createOptions - The kernel creation options * * @param connectOptions - The kernel connection options
packages/services/src/kernel/kernel.ts:781
↓ 26 callers
Method
warning
* Helper function for a toast with warning style
packages/apputils-extension/src/notificationplugin.tsx:875
↓ 25 callers
Method
insert
* Insert a value into the list at a specific index. * * @param index - The index at which to insert the value. * * @param value - The valu
packages/observables/src/observablelist.ts:73
↓ 25 callers
Method
running
* Create an iterator over the known running kernels. * * @returns A new iterator over the running kernels.
packages/services/src/kernel/kernel.ts:736
↓ 24 callers
Method
getCursorPosition
* Returns the primary position of the cursor, never `null`.
packages/codeeditor/src/editor.ts:261
↓ 24 callers
Method
toJSON
* Serialize the model to JSON.
packages/cells/src/model.ts:124
↓ 24 callers
Method
widgets
* Returns an iterator for the widgets inside the application shell. * * @param area - Optional regions in the shell whose widgets are iterat
packages/application/src/frontend.ts:309
next →
1–100 of 8,286, ranked by callers