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

using --execute: which ipython/jupyter is expected? #139

Closed
karinlag opened this issue Dec 3, 2017 · 5 comments
Closed

using --execute: which ipython/jupyter is expected? #139

karinlag opened this issue Dec 3, 2017 · 5 comments

Comments

@karinlag
Copy link

karinlag commented Dec 3, 2017

I am working on having doconce execute code to analyze some things. To that end, I created a jupyter notebook which I then converted to do.txt, which I'm then trying to run with doconce. However, I get this error:

karinlag@bl8vbox[notebook_templates] doconce format ipynb fastqc_eval_notebook.do.txt.do.txt --execute
translating doconce text in fastqc_eval_notebook.do.txt.do.txt to ipynb
*** error: cannot do import nbformat.v4 or IPython.nbformat.v4
    make sure IPython notebook or Jupyter is installed correctly
Abort! (add --no_abort on the command line to avoid this abortion)
karinlag@bl8vbox[notebook_templates] 

From this I suspect that doconce is not able to get to the program/version it would like to use to execute the notebook, so my question is: what is it looking for?

@mhjensen
Copy link
Collaborator

mhjensen commented Dec 3, 2017 via email

@KGHustad
Copy link
Collaborator

KGHustad commented Dec 3, 2017

The error is caused by DocOnce not being able to import nbformat, which is used to generate the ipynb file. Jupyter must be installed in the same Python environment as DocOnce.

I suspect that doconce is not able to get to the program/version it would like to use to execute the notebook

nbformat.v4 refers to version 4 of the Jupyter Notebook file format, and this should be available in all recent versions of Jupyter.

@karinlag
Copy link
Author

karinlag commented Dec 5, 2017

Ok, so I have installed Jupyter via pip install, so that should be fine, but it is still not working. Is there a?specific command I can try to see if I have available in that shell? That way I might not end up installing everything under the sun to see what will work :)

Also, my python is 3.6.3, so that should also be good.

@mhjensen
Copy link
Collaborator

mhjensen commented Dec 5, 2017 via email

@karinlag
Copy link
Author

karinlag commented Dec 7, 2017

Thanks @mhjensen , will test that out tomorrow, thanks for giving me a method for checking my setup!

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