Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convert ReStructuredTexts to ipython notebooks? #2561

Closed
scubamut opened this issue Nov 22, 2018 · 3 comments
Closed

convert ReStructuredTexts to ipython notebooks? #2561

scubamut opened this issue Nov 22, 2018 · 3 comments

Comments

@scubamut
Copy link

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?

@fmaussion
Copy link
Member

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

I doubt this is an xarray problem: we didn't write the documentation with this use case in mind. If you find a way to solve the problem that doesn't brake our Sphinx documentation, then please let us know!

@shoyer
Copy link
Member

shoyer commented Nov 24, 2018

Actually, this shows up in our online docs too:
http://xarray.pydata.org/en/stable/computation.html#automatic-alignment

@shoyer shoyer mentioned this issue Nov 24, 2018
1 task
@fmaussion
Copy link
Member

Actually, this shows up in our online docs too

My apologies for the oversight! And thanks for the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants