-
Notifications
You must be signed in to change notification settings - Fork 86
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
Add test for ipynb as toctree #141
Conversation
0e6c2b3
to
2cf7e64
Compare
Codecov Report
@@ Coverage Diff @@
## master #141 +/- ##
=======================================
Coverage 83.85% 83.85%
=======================================
Files 9 9
Lines 805 805
=======================================
Hits 675 675
Misses 130 130
Continue to review full report at Codecov.
|
@AakashGfude @mmcky In this PR I added a test for including a toctree in a notebook, and don't find any issues? You need to modify this test to reproduce the issue you are having. Then run |
The main thing here is that we need a minimal working example of the problem, to identify the issue |
@chrisjsewell here is a pretty minimal example https://github.com/ExecutableBookProject/myst-nb.example-project/tree/minimal It contains:
Note: this will build. But the |
So the issue comes about when a notebook contains a |
From b541b73, this is only an issue for latex (and possibly other non-html) builds. |
@chrisjsewell I suspect this will be an issue for:
not that we plan to support It seems to be an issue with inlining the |
Ok I think the offending line in obj = self.__class__(rawsource=self.rawsource, **self.attributes) for error *** TypeError: __init__() got multiple values for argument 'outputs' when it tries to unpack and the method has an
|
@@ -230,7 +230,7 @@ def render_nb_code_cell(self, token: Token): | |||
# ================== | |||
# Cell output | |||
# ================== | |||
if "remove_output" not in tags: | |||
if "remove_output" not in tags and cell["outputs"]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here I now skip the creation of the CellOutputNode
if the code cell has no outputs. @choldgraf any reason you can think of why this should not be done?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nah that sounds like a good idea to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
perfect thanks @chrisjsewell just got the |
This commit makes the sphinx based test fixture more general, and fixes a bug in `CellOutputBundleNode`, whereby there was an attribute clash with `outputs`
No description provided.