Skip to content

Integrations

Jupyter

Manage files, notebooks, kernels, and sessions on a Jupyter server

Use Jupyter to manage files, notebooks, kernels, and sessions on a self-hosted Jupyter server.

  • List, read, create, upload, rename, copy, or delete files, notebooks, and directories.
  • List, start, stop, restart, or interrupt kernels.
  • List, create, or delete sessions that bind a notebook path to a kernel.

These operations manage notebook content and runtime lifecycle. Starting a kernel or creating a session does not itself execute notebook cells. Deleting a session also shuts down its associated kernel; save work first. See Jupyter’s REST API.

Use the block

Browse, read, create, upload, rename, copy, and delete files and notebooks; start, stop, restart, and interrupt kernels; and manage sessions that bind notebooks to kernels.

Actions

Jupyter List Contents

List files, notebooks, and subdirectories at a path on a Jupyter server

Inputs and outputs

Input

ParameterTypeRequiredDescription
serverUrlstringYesBase URL of the Jupyter server (e.g. http://localhost:8888)
tokenstringYesJupyter server authentication token
pathstringNoDirectory path to list, relative to the server root. Leave blank for root.

Output

ParameterTypeDescription
itemsarrayDirectory entries at the requested path
↳ namestringEntry name
↳ pathstringEntry path relative to server root
↳ typestringdirectory, file, or notebook
↳ writablebooleanWhether the entry is writable
↳ createdstringCreation timestamp
↳ lastModifiedstringLast modified timestamp
↳ sizenumberSize in bytes
↳ mimetypestringMIME type (files only)
↳ formatstringjson, text, or base64
pathstringThe listed directory path

Jupyter Get Content

Download a file as a stored file, or read structured notebook and directory content

Inputs and outputs

Input

ParameterTypeRequiredDescription
serverUrlstringYesBase URL of the Jupyter server (e.g. http://localhost:8888)
tokenstringYesJupyter server authentication token
pathstringYesPath of the file or notebook to read, relative to the server root

Output

ParameterTypeDescription
filefileDownloaded file
textstringJSON-stringified notebook or directory content
namestringNotebook or directory name
pathstringNotebook or directory path
mimetypestringNotebook or directory MIME type

Jupyter Create File

Create a file, notebook, or directory on a Jupyter server

Inputs and outputs

Input

ParameterTypeRequiredDescription
serverUrlstringYesBase URL of the Jupyter server (e.g. http://localhost:8888)
tokenstringYesJupyter server authentication token
pathstringYesPath to create, relative to the server root
typestringYesType of entry to create: file, notebook, or directory
contentstringNoContent to write. For a file, plain text. For a notebook, a JSON-stringified nbformat document (defaults to an empty notebook). Ignored for directories.

Output

ParameterTypeDescription
namestringCreated entry name
pathstringCreated entry path
typestringdirectory, file, or notebook
createdAtstringCreation timestamp
lastModifiedstringLast modified timestamp

Jupyter Upload File

Upload a file to a Jupyter server

Inputs and outputs

Input

ParameterTypeRequiredDescription
serverUrlstringYesBase URL of the Jupyter server (e.g. http://localhost:8888)
tokenstringYesJupyter server authentication token
directorystringNoDestination directory, relative to the server root. Leave blank to upload to the root directory.
filefileNoThe file to upload (UserFile object)
fileNamestringNoOptional filename override

Output

ParameterTypeDescription
namestringUploaded file name
pathstringUploaded file path
sizenumberFile size in bytes
lastModifiedstringLast modified timestamp

Jupyter Rename Content

Rename or move a file, notebook, or directory on a Jupyter server

Inputs and outputs

Input

ParameterTypeRequiredDescription
serverUrlstringYesBase URL of the Jupyter server (e.g. http://localhost:8888)
tokenstringYesJupyter server authentication token
pathstringYesCurrent path of the entry, relative to the server root
newPathstringYesNew path for the entry, relative to the server root

Output

ParameterTypeDescription
namestringNew entry name
pathstringNew entry path
lastModifiedstringLast modified timestamp

Jupyter Delete Content

Delete a file, notebook, or directory on a Jupyter server

Inputs and outputs

Input

ParameterTypeRequiredDescription
serverUrlstringYesBase URL of the Jupyter server (e.g. http://localhost:8888)
tokenstringYesJupyter server authentication token
pathstringYesPath of the entry to delete, relative to the server root

Output

ParameterTypeDescription
successbooleanWhether the entry was deleted
pathstringDeleted entry path

Jupyter Copy Content

Duplicate a file or notebook into a directory on a Jupyter server

Inputs and outputs

Input

ParameterTypeRequiredDescription
serverUrlstringYesBase URL of the Jupyter server (e.g. http://localhost:8888)
tokenstringYesJupyter server authentication token
pathstringYesDestination directory path, relative to the server root
copyFromPathstringYesPath of the file or notebook to copy, relative to the server root

Output

ParameterTypeDescription
namestringName of the copied entry
pathstringPath of the copied entry
createdAtstringCreation timestamp

Jupyter List Kernels

List running kernels on a Jupyter server

Inputs and outputs

Input

ParameterTypeRequiredDescription
serverUrlstringYesBase URL of the Jupyter server (e.g. http://localhost:8888)
tokenstringYesJupyter server authentication token

Output

ParameterTypeDescription
kernelsarrayRunning kernels
↳ idstringKernel ID
↳ namestringKernel spec name
↳ lastActivitystringLast activity timestamp
↳ executionStatestringKernel execution state
↳ connectionsnumberActive connection count

Jupyter Start Kernel

Start a new kernel on a Jupyter server

Inputs and outputs

Input

ParameterTypeRequiredDescription
serverUrlstringYesBase URL of the Jupyter server (e.g. http://localhost:8888)
tokenstringYesJupyter server authentication token
kernelNamestringNoKernel spec name to start (e.g. python3). Defaults to the server default.

Output

ParameterTypeDescription
idstringKernel ID
namestringKernel spec name
lastActivitystringLast activity timestamp
executionStatestringKernel execution state
connectionsnumberActive connection count

Jupyter Stop Kernel

Shut down a running kernel on a Jupyter server

Inputs and outputs

Input

ParameterTypeRequiredDescription
serverUrlstringYesBase URL of the Jupyter server (e.g. http://localhost:8888)
tokenstringYesJupyter server authentication token
kernelIdstringYesID of the kernel to shut down

Output

ParameterTypeDescription
successbooleanWhether the kernel was shut down
kernelIdstringShut down kernel ID

Jupyter Restart Kernel

Restart a running kernel on a Jupyter server

Inputs and outputs

Input

ParameterTypeRequiredDescription
serverUrlstringYesBase URL of the Jupyter server (e.g. http://localhost:8888)
tokenstringYesJupyter server authentication token
kernelIdstringYesID of the kernel to restart

Output

ParameterTypeDescription
idstringKernel ID
namestringKernel spec name
lastActivitystringLast activity timestamp
executionStatestringKernel execution state
connectionsnumberActive connection count

Jupyter Interrupt Kernel

Interrupt a running kernel on a Jupyter server

Inputs and outputs

Input

ParameterTypeRequiredDescription
serverUrlstringYesBase URL of the Jupyter server (e.g. http://localhost:8888)
tokenstringYesJupyter server authentication token
kernelIdstringYesID of the kernel to interrupt

Output

ParameterTypeDescription
successbooleanWhether the interrupt was sent
kernelIdstringInterrupted kernel ID

Jupyter List Kernel Specs

List available kernel specs (languages/runtimes) on a Jupyter server

Inputs and outputs

Input

ParameterTypeRequiredDescription
serverUrlstringYesBase URL of the Jupyter server (e.g. http://localhost:8888)
tokenstringYesJupyter server authentication token

Output

ParameterTypeDescription
defaultKernelNamestringDefault kernel spec name
kernelspecsarrayAvailable kernel specs
↳ namestringKernel spec name
↳ displayNamestringHuman-readable display name
↳ languagestringKernel language
↳ argvarrayLaunch command arguments
↳ interruptModestringInterrupt mode

Jupyter List Sessions

List active sessions (notebook-to-kernel bindings) on a Jupyter server

Inputs and outputs

Input

ParameterTypeRequiredDescription
serverUrlstringYesBase URL of the Jupyter server (e.g. http://localhost:8888)
tokenstringYesJupyter server authentication token

Output

ParameterTypeDescription
sessionsarrayActive sessions
↳ idstringSession ID
↳ pathstringNotebook path bound to this session
↳ namestringSession name
↳ typestringSession type
↳ kernelobjectKernel bound to this session
↳ idstringKernel ID
↳ namestringKernel spec name
↳ lastActivitystringLast activity timestamp
↳ executionStatestringKernel execution state
↳ connectionsnumberActive connection count

Jupyter Create Session

Create a session that binds a notebook path to a (new or existing) kernel

Inputs and outputs

Input

ParameterTypeRequiredDescription
serverUrlstringYesBase URL of the Jupyter server (e.g. http://localhost:8888)
tokenstringYesJupyter server authentication token
pathstringYesNotebook path to bind the session to, relative to the server root
kernelNamestringNoKernel spec name to start for this session (e.g. python3)
namestringNoOptional session name
typestringNoSession type, defaults to 'notebook'

Output

ParameterTypeDescription
idstringSession ID
pathstringNotebook path bound to this session
namestringSession name
typestringSession type
kernelobjectKernel bound to this session
↳ idstringKernel ID
↳ namestringKernel spec name
↳ lastActivitystringLast activity timestamp
↳ executionStatestringKernel execution state
↳ connectionsnumberActive connection count

Jupyter Delete Session

Delete a session and shut down its associated kernel on a Jupyter server

Inputs and outputs

Input

ParameterTypeRequiredDescription
serverUrlstringYesBase URL of the Jupyter server (e.g. http://localhost:8888)
tokenstringYesJupyter server authentication token
sessionIdstringYesID of the session to delete

Output

ParameterTypeDescription
successbooleanWhether the session was deleted
sessionIdstringDeleted session ID
Was this helpful?
Suggest an edit