You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DOC: Building notebooks fails with some ipython version #2813
The nbgenerate script no longer works well, and should in any case probably be at least partly replaced because the newer versions of ipython nbconvert work pretty well; e.g.
I need additional --allow-errors to get over cells that raise exceptions
However, format 4 seems to hardcode the python version.
I get a keyerror python2 and nbconvert stops with an exception.
(I'm using python 3.4 and I think I don't have a python 2 on the system path.)
It looks like we might have to get rid of the python version specific "kernelspec"
???
I didn't figure out yet how to stop raising an exception on timeout, which happened, AFAICS, in one of the notebooks (on cold start)
Quick update, I've got all the notebooks converted to version 4, and a new version of nbgenerate that uses nbconvert. It optionally executes the notebooks as well.
Tonight or maybe tomorrow I'll finish fixing the notebooks so that they're all running. The only real bug I've seen so far (not simple things like py3 compat) is this one in discrete_choice_overview.ipynb
I am using numpy-dev. I can open an issue if this isn't already known.
EDIT: Oh, nbsphinx worked ok. I couldn't get the Tables of Contents to work correctly (I think a bug on there end, haven't looked), and it needs a better way to pass options to the notebook executor rather than editing the notebook metadata itself. I'd say hold of on using that for now.
However, format 4 seems to hardcode the python version.
This is a parameter to the nbconvert.preprocess.PreprocessExectutor, the thing that actually runs the notebook. By default it grabs that from the notebook metadata, but it can be overridden.
I didn't figure out yet how to stop raising an exception on timeout
Also a parameter. I had some issues with some plots timing out regardless of the timeout I set. I think the plotting may have blocked the event loop. Including a %matplotlib inline fixed that.
@TomAugspurger Thanks for all this work. Sounds very good.
You can also put it then in a PR or somewhere so I can also try.
(Reminder: Don't commit output in notebooks. We don't want to load the repo with temporary print and plots.)
I'll look at the get_margeff error. It looks like we don't have a unit test for summary (which have smoke tests only so far)
Activity
josef-pkt commentedon Feb 13, 2016
I didn't know about the
--executeoption. I was recently trying outrunipyanother wrapper program on top of it, that also seems to work fine.Currently we generate html instead of rst and embed it as html in the rst file.
Also it doesn't work on python 3. #2312
Another issue: which format #2530
josef-pkt commentedon Feb 14, 2016
I need additional
--allow-errorsto get over cells that raise exceptionsHowever, format 4 seems to hardcode the python version.
I get a keyerror
python2and nbconvert stops with an exception.(I'm using python 3.4 and I think I don't have a python 2 on the system path.)
It looks like we might have to get rid of the python version specific "kernelspec"
???
I didn't figure out yet how to stop raising an exception on timeout, which happened, AFAICS, in one of the notebooks (on cold start)
Also: I recently looked at sphinx extension for notebook conversion, like http://nbsphinx.readthedocs.org/en/0.2.4/index.html
but I have no idea how reliable they already are.
TomAugspurger commentedon Feb 15, 2016
Quick update, I've got all the notebooks converted to version 4, and a new version of
nbgeneratethat usesnbconvert. It optionally executes the notebooks as well.Tonight or maybe tomorrow I'll finish fixing the notebooks so that they're all running. The only real bug I've seen so far (not simple things like py3 compat) is this one in
discrete_choice_overview.ipynbwhich gives
I am using numpy-dev. I can open an issue if this isn't already known.
EDIT: Oh, nbsphinx worked ok. I couldn't get the Tables of Contents to work correctly (I think a bug on there end, haven't looked), and it needs a better way to pass options to the notebook executor rather than editing the notebook metadata itself. I'd say hold of on using that for now.
TomAugspurger commentedon Feb 15, 2016
This is a parameter to the
nbconvert.preprocess.PreprocessExectutor, the thing that actually runs the notebook. By default it grabs that from the notebook metadata, but it can be overridden.Also a parameter. I had some issues with some plots timing out regardless of the
timeoutI set. I think the plotting may have blocked the event loop. Including a%matplotlib inlinefixed that.josef-pkt commentedon Feb 15, 2016
@TomAugspurger Thanks for all this work. Sounds very good.
You can also put it then in a PR or somewhere so I can also try.
(Reminder: Don't commit output in notebooks. We don't want to load the repo with temporary print and plots.)
I'll look at the
get_margefferror. It looks like we don't have a unit test for summary (which have smoke tests only so far)TomAugspurger commentedon Feb 15, 2016
@josef-pkt #2816