Skip to content

convert ReStructuredTexts to ipython notebooks? #2561

Closed
@scubamut

Description

@scubamut

I'm trying to use a Sphinx extension (sphinxcontrib-jupyter) to convert a collection of RST files to Jupyter notebooks. Trying to generate the Xarray documentation fails with this error:

>>>-------------------------------------------------------------------------
Exception in /home/scubamut/miniconda3/envs/makedocs/xarray/doc/computation.rst at block ending on line 308
Specify :okexcept: as an option in the ipython:: block to suppress this message
  File "<ipython-input-56-f15d32fb2f97>", line 1
    ValueError: arguments without labels along dimension 'x' cannot be aligned because they have different dimension size(s) {2} than the size of the aligned dimension labels: 3
                                ^
SyntaxError: invalid syntax

<<<-------------------------------------------------------------------------

Problem description

Obviously a problem with computation.rst, but could someone help me please?

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