deephaven_enterprise.notebook

exec_notebook(db, path, globals=None)[source]

Attempt to exec a Notebook

Parameters:
  • db (Database) – Core+ Python Database object

  • path (str) – full path to Notebook, beginning with “/”

  • globals (Optional[Dict[str, Any]]) – the globals to use for execution of the notebook, if you want to have the variables from your

Return type:

None

script session available use “globals()”

meta_import(db, root='notebook')[source]

Set up a meta importer to enable using a Python import statement that references Deephaven Web console notebooks.

For example, after calling ‘meta_import(db, “notebook”)’; you can then call ‘import notebook.file’ to make the “/file.py” in your Web File Explorer available as a Python module.

Parameters:
  • db (Database) – Core+ Python Database object

  • root (str) – the module name that prefixes all web notebooks, defaults to “notebook”

Return type:

None