Jupyter vs Project Mars: Interactive Notebooks Compared
Jupyter defines the interactive notebook experience for many Python users. Project Mars builds on that paradigm with a Rust-first platform, multi-language support, and a new document format designed for reproducible data science workflows.
What Jupyter does
Jupyter introduced the notebook paradigm to data science:
- Interactive code cells with execution and output
- Markdown cells for documentation
- Rich outputs (HTML, images, LaTeX, widgets)
- Kernel architecture for language backends
- File format (
.ipynb) for sharing notebooks - Extensible ecosystem of kernels and extensions
It became the default environment for data science experimentation, education, and research.
What Project Mars brings
Project Mars provides a Rust-first interactive notebook platform:
- Rust-first design with native
.marsdocument format - Multi-language support (Rust, Python, R, Julia, C++) in the same notebook
- Persistent runtime sessions for each language
- Replay-based Rust execution with Cargo dependencies
- Desktop application with CodeMirror editor and LSP integration
- CLI for headless execution and automation
- Jupyter interoperability via import/export
The key difference: Project Mars is designed as an independent notebook platform with a native document format and execution architecture, not just another Jupyter kernel or frontend.
Comparison
| Feature | Jupyter (Python) | Project Mars |
|---|---|---|
| Code execution | Python kernel | Rust, Python, R, Julia, C++ kernels |
| Cell structure | Code, Markdown, raw | Code, Markdown, raw |
| Rich outputs | HTML, images, LaTeX, widgets | HTML, images, LaTeX, tables, charts |
| Variable persistence | Across cells (Python) | Across cells (per language) |
| Document format | .ipynb (JSON) | .mars (JSON, versioned) |
| Type safety | Runtime | Compile-time (Rust) |
| Dependencies | pip, conda | Cargo (Rust), pip (Python), etc. |
| Multi-language | Via multiple kernels | Native multi-language support |
| Desktop editor | Web-based (JupyterLab) | Native Tauri application with LSP |
| CLI | Limited | Full CLI for automation |
Example: Jupyter
import numpy as np
import pandas as pd
arr = np.array([1, 2, 3])
df = pd.DataFrame({'a': arr})
df
Example: Project Mars (Rust)
// Cell 1: Rust
let arr = vec![1, 2, 3];
# Cell: Python
import numpy as np
arr = np.array([1, 2, 3])
When to use each
- Jupyter in Python when you need the mature ecosystem, broad language support via kernels, or integration with Python-specific tools.
- Project Mars when you want a Rust-first notebook platform, multi-language notebooks in a single file, native desktop application, or CLI automation.
How Project Mars supports Jupyter workflows
Project Mars provides Jupyter interoperability:
- Import
.ipynbnotebooks to.marsformat - Export
.marsnotebooks to.ipynbformat - Rich output preservation (HTML, images, LaTeX, tables)
- Metadata preservation for unsupported features
- Cell structure mapping (code, Markdown, raw)
This makes it easy to migrate existing Jupyter workflows to Project Mars while maintaining compatibility with the broader ecosystem.
Multi-language notebooks
Project Mars allows mixing languages in a single notebook:
// Cell 1: Rust
let signal = load_signal();
// Cell 2: Python
# Use Python's pandas for analysis
import pandas as pd
df = pd.DataFrame(signal)
// Cell 3: R
# Use R for statistical tests
t.test(df.values)
Each language has its own persistent runtime, so variables persist across cells within that language.
Try it in Project Mars
This post is about notebooks — so here is one. The cells below are the same document you're reading: Rust, Python, and R sessions side by side in a single .mars file, each keeping its own state.
// Rust session: replay runtime, bindings persist across cells.
let samples = vec![5.1, 4.9, 4.7, 4.6, 5.0];
let total: f64 = samples.iter().sum();
println!("rust sees {} samples, total {total:.2}", samples.len());
# Python session: independent interpreter, same notebook.
import statistics
sepal_lengths = [5.1, 4.9, 4.7, 4.6, 5.0]
statistics.mean(sepal_lengths)
# R session: yet another runtime in the same .mars file.
sepal_lengths <- c(5.1, 4.9, 4.7, 4.6, 5.0)
mean(sepal_lengths)
Get started with Project Mars
Explore Project Mars's multi-language notebook platform: