Examples and importing notebooks
New Notebook (on the Files page and the dashboard) has three tabs: Blank, Examples and Import. Examples and imports become ordinary notebooks in the folder you opened the dialog from: they autosave, show up on the Files page, and you can rename, share or delete them like any other. Creating one needs the editor or owner role in the workspace.
If a notebook with the same name is already in the folder, the new one is
named Name (2), Name (3) and so on. Nothing is ever overwritten.
Examples
| Example | What it shows | Time |
|---|---|---|
| Quickstart tour | The machine, files that outlive the runtime, pip install, charts, a long cell you can walk away from, and secrets. | About 5 minutes |
| Experiment tracking | Logging metrics with the Python SDK and comparing runs on the Experiments page. NumPy only, no dataset to download. | About 3 minutes |
| Gradio demo on a port | Serving a Gradio app from the runtime and opening it in a browser tab, as described in Web apps on runtime ports. | About 3 minutes |
Every example runs on any machine, CPU or GPU, and on the Provider default
environment: it installs the few small packages it needs with pip, which
persist for your next runtime on the same environment (see
Packages in your runtime).
The dashboard's Start with an example row and an empty Files folder open the same tab.
Import from a link
Paste the address of an .ipynb file in the Import tab and press
Import. Neural Studio fetches the file on its servers, so the address must
be public. These forms are understood and turned into the file itself:
| Source | Paste |
|---|---|
| GitHub | The notebook's page, https://github.com/<owner>/<repo>/blob/<branch>/<path>.ipynb, or its Raw link. |
| Gist | https://gist.github.com/<user>/<id> (its first file), or the notebook's Raw link. |
| Colab | An "Open in Colab" link to GitHub or a gist: https://colab.research.google.com/github/... or .../gist/.... |
| Hugging Face | The file's page, https://huggingface.co/<repo>/blob/<revision>/<path>.ipynb, in a model, dataset or Space. |
| GitLab | The file's page, https://gitlab.com/<group>/<project>/-/blob/<branch>/<path>.ipynb. |
| Anything else | Any https:// address that returns the notebook's JSON. |
Colab notebooks saved in Google Drive (colab.research.google.com/drive/...)
cannot be imported by link, because reading them needs your Google sign-in. In
Colab choose File > Download > Download .ipynb, then upload the file on
the Files page.
What the import checks
- Only
httpsaddresses on the standard port, with no user name or password in them. Addresses that point at private networks are refused, including after a redirect. - The file must be a Jupyter notebook in the current format (nbformat 4). A web page is refused with a hint to use the file's Raw link; an old nbformat 3 notebook must be opened and saved in Jupyter first.
- At most 32 MiB, fetched within 20 seconds.
- At most 20 imports per 10 minutes per account.
- Saved outputs are cleaned like any notebook you upload (scripts in HTML outputs are removed).
Code written for Colab
After an import, a panel lists the cells that call Colab-only features and what to use here instead:
| In Colab | Here |
|---|---|
drive.mount(...) | Your workspace files are already at ~/workspace. Upload data on the Files page. |
files.upload() / files.download() | Upload and download on the Files page. |
userdata.get("KEY") | Store the key under Workspace settings > Secrets and read it with neural_studio.secrets.get("KEY"). |
%tensorflow_version | Install the version you need with pip. |
Open in Neural Studio links
Link to https://neuralstudio.co/import?url=<address of the .ipynb> (the
address URL-encoded) from a README or a course page. The link opens a page
that shows the address and the workspace the notebook will go to; nothing is
fetched until the signed-in reader presses Import. The notebook lands in
the root of the workspace they have selected.
[Open in Neural Studio](https://neuralstudio.co/import?url=https%3A%2F%2Fgithub.com%2Fowner%2Frepo%2Fblob%2Fmain%2Fdemo.ipynb)
Private GitHub repositories
Where it is switched on, Account settings > Account > GitHub connects your GitHub account to the Neural Studio GitHub app. The app can only read files, and only in the repositories you install it on (Choose repositories). Once connected, the Import tab lists those repositories; pick one, then a notebook in it.
Your GitHub token is kept encrypted on the server, used only for your own imports and never sent to the browser. Disconnect deletes it and revokes it at GitHub. A connection unused for six months expires; connect again to continue.