Files
Creating and importing files.
Use the + at the top of the file tree (New file or folder) to create a file or folder. The menu
lists Folder and Notebook first, then the other kinds: Python, CSV file and JSON file.
Notebooks (.ipynb) get the notebook editor; anything else, such as a .csv, .txt or a Dockerfile,
opens as plain text. A file's type comes from its extension.
A new folder appears at the top of its parent with its name selected, ready to type. Once you press
Enter it moves into place. The tree always lists folders above files, each sorted by name.
Importing a file
You can import a CSV, JSON or notebook (.ipynb) file from the file tree, or drop one onto it.
Data files are limited to 4 MB; for larger data, load it from a
data connection or download it from inside a notebook.
Importing a notebook
A notebook can be up to 16 MB to pick, because most of that is usually saved output. ByteRun imports it without its outputs and rebuilds it from a safe subset, so what is stored is just your code and text:
- Outputs and execution counts are removed. Saved outputs can carry scripts, plots and anything that was once printed, such as a token. Run the cells again to get fresh results.
- Only cell tags and the kernel's name and language are kept. Other metadata, such as widget state, signatures, attachments and settings from other tools, is dropped.
- Only notebook format 4 is accepted. For an older notebook, open it in Jupyter and save it again.
- After outputs are removed the notebook must be under 4 MB and have at most 5,000 cells.
The same checks run in the browser, for a clear early message, and again on the server.
Names are checked before anything is sent: a name that cannot be used, or one that changes a file's extension on rename, is refused with a message saying why.
Python files
A notebook can be saved as a .py file, and a .py file can be opened as a notebook. See
export to Python.
Persistence
Files live on storage attached to the project and survive stopping and starting.