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
Add utility for printing banned cell names (#501)
Akshay Agrawal3f5f58db889b
diff --git a/scripts/print_banned_cell_names.py b/scripts/print_banned_cell_names.pynew file mode 100644index 0000000000..e269b8da06--- /dev/null+++ b/scripts/print_banned_cell_names.py@@ -0,0 +1,47 @@+import marimo++__generated_with = "0.1.69"+app = marimo.App()+++def __():+ def format_keywords(l: list[str]):+ print('\n'.join(l))+ return format_keywords,+++def __():+ RESERVED_BY_MARIMO = [+ # We reserve tokens starting with two underscores for+ # the future+ "__*",+ # We import marimo in the notebook file+ "marimo",+ # The notebook/app object+ "app"+ ]+ return RESERVED_BY_MARIMO,+++def __(keyword):+ RESERVED_BY_PYTHON = keyword.softkwlist + keyword.kwlist+ return RESERVED_BY_PYTHON,+++def __(RESERVED_BY_MARIMO, RESERVED_BY_PYTHON, format_keywords):+ print(format_keywords(RESERVED_BY_MARIMO + RESERVED_BY_PYTHON))+ return+++def __():+ import keyword+ return keyword,+++if __name__ == "__main__":+ app.run()