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
Printview fails if you have changed the working directory of your notebook, e.g.
%cd subdirectory
Now printview fails with:
[NbConvertApp] WARNING | pattern 'notebook.ipynb' matched no files
And just prints out the help message to nbconvert in the log.
The text was updated successfully, but these errors were encountered:
achampion
changed the title
printpreview assumes the notebook is in the current working directory
printview assumes the notebook is in the current working directory
Sep 11, 2017
It is not so easy to get the path right, because the current implementation of printview starts an jupyter nbconvert command in the current kernel, and possibly (as you noticed in) the wrong directory. Fixing would be possible with some effort. I think the better solution is to wait for jupyter/notebook#2413.
Agree, it would be better to have jupyter do the conversion vs the python kernel doing it. As you mentioned while it is easy to get the path of the notebook relative to the jupyter root, getting that jupyter root in the python kernel not so easy.
Printview also doesn't work with R kernel (or any other than Python kernel) for the reason mentioned above (tries to execute Python code in current kernel to convert the notebook).
Printview fails if you have changed the working directory of your notebook, e.g.
Now printview fails with:
And just prints out the help message to
nbconvert
in the log.The text was updated successfully, but these errors were encountered: