A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
/* Copyright 2026 Marimo. All rights reserved. */
import { asURL } from "./url";
/**
* Open a notebook in a new tab.
* @param path - The path to the notebook.
*/
export function openNotebook(path: string) {
// There is no leading `/` in the path in order to work when marimo is at a subpath.
window.open(asURL(`?file=${encodeURIComponent(path)}`).toString(), "_blank");
}