Files
The Files page is your workspace filesystem: the same tree a runtime mounts
at /home/user/workspace. Anything you upload here is there when a runtime
starts, and anything a notebook or terminal saves to the workspace shows up
here within seconds. A runtime started with Workspace files switched off in
the Runtime settings dialog mounts nothing: this tree is not on it, and
nothing it writes lands here.
On most clouds a save on the runtime returns as soon as the file is on the machine's own disk, and it uploads to your workspace in the background; the runtime bar shows Uploading while it does. A file the runtime saved a moment ago can take a few seconds to open here. When you stop the runtime, or it stops for being idle or reaching its duration, it finishes uploading first ("Finishing upload, … left"). A runtime that stops at once (out of credits, for example) or crashes can lose the last few seconds of saves; the runtime bar then says how much was not saved.
Browsing
- Folders open on click; the breadcrumb at the top walks back up. Each workspace has its own tree, and the switcher in the sidebar changes workspaces.
- Search this folder filters the current folder on the server, so it works on folders too large to list at once.
- Show hidden files toggles dot-files. Two top-level directories are
managed by the platform and never listed:
.ns-uploads(upload staging) and.ns-cache(the package cache). Nested directories of the same name are ordinary.
Adding files
- New Notebook creates an empty
.ipynbin the current folder and opens it, or, from its Examples and Import tabs, a copy of a starter notebook or a notebook fetched from a link (see Examples and importing notebooks). New Folder creates a folder. - Upload opens Upload Files: choose files, or drag and drop them onto the dialog. Several files can be uploaded at once; folders cannot be uploaded as a whole, so create the folder first and upload into it. A single file may be up to 5 TiB, which in practice means the limit is your storage pool.
- Import from cloud… and Export to… start a transfer to or from a storage connection; see Storage connections and transfers.
- Everything you add is checked against the free space in your pool before a byte is written. When the pool is full, every workspace that shares it refuses new writes until something is deleted or the pool's owner adds extra storage.
- A workspace holds at most 20 GB and 250,000 files and folders (see Limits). An upload or a new folder that would take it past that is refused with a message that says so; put large files in a bucket instead, or select a folder and choose Move to bucket….
Working with a file
Each row has a menu:
- Open (or click the row). Notebooks open in the notebook editor. Any
other file opens in the file editor: text files up to 2 MB (Python,
YAML, JSON, Markdown, shell scripts and the like) open for editing,
images up to 8 MB show a preview, and anything else, or anything larger,
shows a card with a Download button. Videos (
.mp4,.webm), 3D files (.glb,.gltf,.ply,.obj,.stl,.off,.pcd,.las), Gaussian splat scenes (.ply,.spz,.splat,.ksplat) and depth maps saved asname.depth.npyopen in the same viewers as on the Experiments page, up to 64 MB. A.gltffile's side files are read from its folder..lazfiles are not previewed; log one withns.Object3Dto view it. On a shared or public file page these previews start with Load preview. - Download. A file downloads as it is; a folder downloads as a
.zipof its contents (hidden entries included when Show Hidden is on). Select several items and use the toolbar's Download to get them as one.zip, up to 50 items; a very large selection (more than 10,000 files or 20 GB) is refused, so download it in parts. - Share gives one person view and copy access, or creates a public link; see Sharing. Folders cannot be shared.
- Rename (files only; folders cannot be renamed).
- Move to Trash moves a file, or a folder with everything in it, to the workspace's Trash at once, however large it is. The message that follows has an Undo button. Selecting several items and choosing Delete in the toolbar does the same for all of them.
Trash
Trash at the top of the Files page lists what was moved there, newest first, with where it was and who moved it. Restore puts an item back where it was; if something else now has that name, it comes back next to it as "name (restored)". A restored notebook keeps its comments and its version history, but its shares and public links do not come back: share it again if you need to.
Items stay in the Trash for 30 days and are then deleted forever. Until
then they still count toward the workspace's storage (see
Limits), so to free space use
Delete forever on an item (type its name to confirm) or Empty Trash
(type delete). Deleting forever cannot be undone. Viewers can see the
Trash but not change it. Files deleted from a runtime's terminal (rm) do
not go to the Trash.
Editing a file
The file editor saves only when you ask: press Cmd+S (Ctrl+S on Windows and Linux) or click Save. "Unsaved" next to the file name means you have changes that are not saved yet, and the browser asks before you close the tab with unsaved changes.
If the file changed after you opened it (another tab, the SDK, or a script on a runtime wrote it), saving does not overwrite it. A banner says the file changed and offers:
- Reload: drop your changes and load the latest version.
- Overwrite: save your version over the latest one.
- Download my version: keep a copy of your changes first.
Viewers can open files read-only.
Move a file or folder by dragging it onto a folder, or onto a breadcrumb to move it up the tree. A move is refused when a file of the same name already exists at the destination.
Viewers see the read-only actions only. Editors and owners see everything.
From the command line and Python
The same files are ns://workspace/<path> to the ns command
and the SDK:
ns cp -r ./src ns://workspace/src/
ns sync ns://workspace/results/ ./results
Inside a runtime that is the local ~/workspace folder. On a laptop or
cluster it goes through the API with an API key: a
data:read key lists and downloads, a data:write or full-access key also
uploads, moves and deletes, and your role here decides as on this page (a
viewer's key reads only). Every byte passes through the API, at about
12 MB/s, so this suits code and notebooks; keep large data in a bucket.
Copying between a bucket and the workspace works only inside a runtime.
Buckets are not part of the workspace's files; on a runtime they appear as
read-only folders under ~/buckets (see
Bucket folders on a runtime).
Sharing a file or making a public link stays on this page.
Your storage pool
The bar on the Files page shows the account's storage pool and how much of it
this workspace holds. The pool is per account and shared by every workspace
you own; a workspace somebody else owns draws on their pool, and the page
says so. Everything under the workspace counts, including .ns-cache, which
holds the packages you pip install in a runtime. The workspace is a
network filesystem that pays a round trip for every file it creates, so a
large package stack or a conda environment created on it is slow to build
and slow to import; bake those into an
Environment image
instead.
Large datasets, model downloads and other re-creatable data belong on the runtime's local scratch disk, which does not count; see Large datasets and models. Data bigger than your pool is best read straight from your own bucket.
When the pool is nearly full, a banner above the file list says so. For the pool's owner on Pro it links to Get more storage in Account settings → Billing, where the pool grows in 100 GB blocks for $5 per month each (see Extra storage); extra storage is room for buckets, and each workspace still holds up to 20 GB. A member of someone else's workspace is told to ask the workspace owner for more storage.
On a runtime outside AWS, a change made here on the Files page (or by another member's runtime) can take up to a minute to show in that runtime, because it caches the workspace's metadata longer to hide the distance to the storage region; the runtime's own writes are visible to it at once. See On clouds other than AWS.
Notebooks are plain files
A notebook on the Files page is a standard .ipynb. Download it and it opens
in Jupyter, Colab, Kaggle or VS Code with nothing lost but the runtime it ran
on. Commits made from a runtime strip outputs by default; see
Git in your runtime.
Related
- Storage connections and transfers: moving data in and out in bulk.
- Sharing: grants and public links.
- Limits: the storage pool numbers.