Skip to content

Code-cell output, myst and co #39

@renefritze

Description

@renefritze

Coming from here (after almost a year..) I'm somewhat confused about the current and planned state of the ecosystem and hope somebody can clarify this for me.

I have notebooks in myst markdown in a sphinx project. Currently the html builder processes those, I get html output with all the code-cells' output in it. Myst-nb also outputs .ipynbs for me. However those have unprocessed sphinx roles/directives in the markdown cells.
To fix that I would use sphinx-tojupyter, run its jupyter builder and get nice markdown cells in the output notebooks that would be (mostly?) equivalent to the text produced from the html builder. However code-cell currently do not get executed/their outputs included. That would be the goal of #5. After that I would need some more glue code in my deployment that puts the sphinx-tojupyter .ipynb into the html structure so they can be downloaded from there when I upload my final page.

Is that about right?

I've also stumbled upon this in #3:

Eventually myst will be supported in jupyter and we can deprecate this package.

This I don't understand at all. Would jupyter somehow be rendering sphinx directives itself?

I do have some resources to work on #5, if that's mostly what's needed for me to get where I want to be. However if that's not a long-term solution anyway, maybe the work would be better spent elsewhere?

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