Use Notebooks
Notebook sessions are service workloads. You can combine a notebook server with sandbox, SSH, and tmux plugins when you need both browser-based exploration and lower-level terminal access.
This page uses the quick-start project established in Create a project.
Start from a Hub Component
If your organization uses the public or organization component hub, start a notebook component and pass the queue or presets required by your cluster:
polyaxon run -p quick-start --hub notebookCopy the notebook run UUID into the same local variable used by the Sandbox Quick Start:
export RUN_UUID=PASTE_RUN_UUID_HERESee the Jupyter Notebook integration for notebook-specific examples.
Add Sandbox Access to a Notebook Service
When authoring a custom notebook component, enable only the plugins you need:
kind: component
version: 1.1
name: notebook-sandbox
plugins:
sandbox: true
run:
kind: service
ports:
- 8888
container:
image: jupyter/scipy-notebook
command: ["start-notebook.py"]Add plugins.ssh: true only for native SSH or IDE access, and plugins.tmux: true only for reconnectable polyaxon ops shell sessions.
Common Workflow
- Start the notebook service.
- Open the notebook from the run page.
- Use
polyaxon sandbox execfor quick checks outside the notebook kernel. - Use
polyaxon sandbox uploadanddownloadto move small files. - Use SSH when you need IDE access or port forwarding.
- Stop the run when the notebook is no longer active.
Track Experiments from a Notebook
When the notebook runs in-cluster, Polyaxon can resolve project and run context automatically. See tracking in notebooks for tracking examples.