I had all kinds of problems figuring this out as well. I don't know if it will provide exactly what you need, but I downloaded my notebook as an HTML file, then pulled it up in my Chrome browser, and then printed it as a PDF file, which I saved. It captured all my code, text and graphs. It was good enough for what I needed. Screenshot Convert ipynb to pdf. If it dosn't work for any reason, you can try another way.
As a brand new member, I was unable to simply add a comment on the post but I want to second that the solution offered by Phillip Schwartz worked for me. Hopefully people in a similar situation will try that path sooner with the emphasis. Not having page breaks was a frustrating problem for quite a while so I am grateful for the discussion above.
That seemed to do the trick for me, and the generated PDF had the page break at the corresponding locations. You don't need to run the custom code though, as it seems the "normal" path of downloading the notebook as HTML, opening in browser, and printing to PDF works once those utilities are installed.
The code checks if pandoc is in your environmental variables path. For my machine the answer is no. However pandoc. The same goes for 'xelatex' is not installed. For Ubuntu users, an answer can be found here. I also quote it:. The most probable cause, is that you have not installed the appropriate dependencies.
You can install them by:. Also, nbconvert is another dependency that is usually automatically installed with jupyter. But you can install it just to be sure, while having your virtual environment activated:. I had problems correctly displaying some symbols with regular download as pdf. So downloaded as tex jupyter nbconvert --to latex "my notebook. It adds unnecessary header and footer but everything else remains as it is.
No more errors processing tqdm progress bar, no more code going out of the page and so on. Simple as that. For others and to full install texlive follow the instructions given at tug as per your system and choice.
I downloaded tar. Installation instructions in summary:. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 6 years, 8 months ago. Active 2 months ago. Viewed k times. PandocMissing: Pandoc wasn't found: Please check that pandoc is installed if i try to install pandoc pip install pandoc , this gives me ImportError: No module named 'ConfigParser' and this is where i get stuck because i just don't know what else to do.
Improve this question. Isak Baizley Isak Baizley 1, 3 3 gold badges 13 13 silver badges 19 19 bronze badges. That means you have to install them before you can use this feature. And they're not python packages, therefore you cannot use pip. Add a comment. Active Oldest Votes. To make it work, I installed latex, typical latex extra, and pandoc.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community. Already on GitHub? Sign in to your account. I am new to jupyter notebook, python, and linux, and do not know much of anything about bash or start up files. I am having the following error when I am trying to download a. I am running jupyter notebook on linux.
I downloaded and unzipped the pandoc file but got stuck there. I also added pandoc to my environmental file along with nbconverter. I found this post on github where someone had the same issue and fixed it but I do not understand what it means to and how to set a path variable. I have a start up file but am scared to mess with it. Does the path variable need to be specific for jupyter notebook outputs?!? The text was updated successfully, but these errors were encountered:.
Thanks for your question. As a first note this is IPython, not jupyter notebook, the difference is complicated, so let's gloss over it. Are you using conda?
If you are using conda than you should be able to "conda install pandoc", it will be wayyyy easier. When you type a command in bash, like "jupyter", or "python" or "pandoc", linux need to know where to "search" for things. It will search in each of these folder in order , and stop on the first where it finds the command you asked.
Oh no, i've messed up my path What is better is to append, or prepend to path depending of wether you want things to have high prepend , or low append precedence.
You will even probably have in this file already some stuff, for example I have that added by conda :. You might need to restart your jupyter notebook server for things to work, but if PATH is set correctly, and in bash you get something along:. Side notes: if you are on linux you like can apt install pandoc one almost never download and install a an app by downloading it manually on linux.
The notebook opens on my Safari browser. But when I try to open an existing notebook or when I create a new notebook I receive a " : Internal Server Error" in the browser and the following message on the terminal:.
However, when I launched jupyter notebook it would refuse to connect to python kernel so I had to downgrade tornado from v6. Ref: Tornado 6 issue discussed here and here. If you edit your environment. For me, the solution was to follow the suggestion of this link and apply a small edit to an nbconvert file.
This won't be a perfect answer. But I'll let you know anyway. It is happening because of some package version conflict as I figured out. If you uninstall and reinstall Anaconda, it will work.
It worked for me. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. How can I fix " : Internal Server Error" on jupyter notebook due to 'tornado. Ask Question. Asked 2 years, 8 months ago. Active 8 months ago. Viewed 24k times. But when I try to open an existing notebook or when I create a new notebook I receive a " : Internal Server Error" in the browser and the following message on the terminal: [E Improve this question.
0コメント