Code, notebooks, terminal, and Git

Edit code and previews, run Python or R notebooks, manage desktop terminal sessions, and work on local or SSH projects.

Code, data, notebooks, and the paper that reports them live in the same Kosmico project.

Code and previews

Source files open with syntax highlighting, folding, completion, bracket matching, multiple cursors, an outline, and regular-expression search and replace. Select code or prose to ask Kosmo about that exact passage or request a reviewable edit.

HTML and MDX files can open in a source-and-preview workspace. This preview renders project content; it is separate from the integrated Browser used for public websites. CSV and other supported tables open in a data-table surface rather than as plain text alone.

Notebooks

Python and R are the supported notebook runtimes. Runtime metadata stays with each .ipynb, so an R notebook is never silently executed as Python.

On desktop, Kosmico discovers Jupyter kernels, keeps independent sessions, streams output, and supports run cell, run all, interrupt, restart, and clear output. Guided setup covers Jupyter, ipykernel, R, and IRkernel. Conda environment discovery applies to Python.

The web app can create, edit, switch, save, and reopen Python and R notebooks, but execution remains on desktop. Run locally hydrates an authorized device-local workspace for a cloud or shared project and mirrors supported document writes back to the project.

An invalid notebook is reported and left untouched rather than being rewritten.

Terminal sessions

Desktop only. The terminal and host execution are unavailable in the web app.

Open Terminal from the sidebar. Each project can hold several independent shell sessions. Search scrollback with Cmd+F (Windows: Ctrl+F). Closing a terminal session ends its process.

Kosmo requests permission before running host commands. Use tmux or nohup when a local job must outlive a short command connection or app interruption.

SSH projects

SSH projects are desktop-only and leave files on the remote host. Kosmico provides remote files, Git, bounded foreground commands, and durable jobs. A durable job can use nohup, tmux, or Slurm and has list, status, and cancel operations. It survives the short connection used to start it.

SSH projects are not exposed through Kosmico's local MCP server. Notebook execution and other features still depend on what is installed on the remote machine.

Git

Open Git from the sidebar to inspect changed files, stage selected changes, review diffs, commit, switch branches, and push. Commit history and the branch graph are separate views.

The Navigator summarizes added and deleted text lines across staged and unstaged work. Untracked text counts as additions; large and binary artifacts are excluded.