Skip to content
This repository was archived by the owner on Feb 7, 2025. It is now read-only.
This repository was archived by the owner on Feb 7, 2025. It is now read-only.

Common headers for python script cells #48

@okennedy

Description

@okennedy

Current behavior: Each python cell gets a fresh interpreter and is prefixed with a hardcoded setup script (e.g., to initialize the vizierdb variable, bokeh, etc...).

Desired behavior: Allow users to provide custom setup code to be run in each cell (e.g., to avoid the mountain of from X import Y statements that will end up getting copied into each cell)

Topics for discussion:

  • How does this setup code interact with dependencies? Presumably, changing this cell would require re-running ALL existing python cells.
  • Maybe instead of a generic, turing-complete header, we simply let the user specify a list of desired includes. E.g., As part of the notebook configuration, we have a list of from X import Y. As long as there is no name collision, this should (I think) be side-effect free.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions