Skip to content

Is sharing state between cells and expected and testable use case? #214

Open
@jonathanstathakis

Description

@jonathanstathakis

As title. I very often work with notebooks which first generate a dataset then proceed to analyse it across a number of interdependent cells. I would assume that most users would have a similar pattern. I have however found that testing a notebook fails unless I import all cell dependencies into each cell, which to me is an anti-pattern.

Am I missing a configuration which allows me to use the notebook global scope within each cell/test? I admit I am not an expert at the inner workings of ipython notebooks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions