----- solve the problem is solved using jupyter write Markdown documents to PDF appear (500: Internal Server Error) problems and recommend Typora Editor

@ [TOC] (problem solving ----- solved using jupyter write Markdown documents to PDF appear (500: Question catalog Internal Server Error) of)
compilation tools jupyter notebook is not only a run python code, is also a money can write documents online text editing software, choose to write column Code to edit python code, select Markdown be blog text editing, directly run the resulting code, images, code, and text merge, and then save it as md document on you can export and import can be released Oh csdn, today Lin Jun seniors take you to solve the problem is to write in the document solutions jupyter error when exporting PDF problem, look at it!

I. Description of the problem

1, written after his Markdown text by jupyter, by exporting to PDF jupyter inside when there are mistakes:

Here Insert Picture Description
Here Insert Picture Description
Because of these errors, led to our failure to export pdf format document, then, the problem we solve it!

Second, the cause of the problem

1, lack of tools needed to turn pdf or a library

1), can be seen from the above chart, the system can not find pandoc, in fact, even more than this, after we install the library, there will not be found Miktex this thing, that in the end what is it? How to deal with it? See the following steps now!

Third, the problem-solving method

1, problem-solving tools can not find pandoc

Pandoc by John MacFarlane developed markup language conversion tool, enabling format conversion between different markup language, called this area the "Swiss Army knife."
Pandoc use Haskell language, implemented in the form of command-line interaction with the user, can support multiple operating systems; Pandoc using the GNU
the GPL license release, is free software.

1), the following prompt in the site given above pandoc download tool connected as follows:
https://pandoc.org/installing.html
2), after visiting the site, click Windows, and then click to download, as follows:
Here Insert Picture Description
3 ), download the file to a specified location for installation, not paper, download soon: the
Here Insert Picture Description
installation can choose the default installation, you can also customize the installation, there is not given the appropriate installation process it!

2, problem-solving tools can not find Miktex

LaTeX (LATEX, transliteration of "La Taihe") is a typesetting system based ΤΕΧ by American computer scientist Leslie Lambert (Leslie Lamport) developed in the early 1980s, the use of this format, even if the user does not layout and programming knowledge can leverage the power provided by the TeX can even generate a lot of quality printed books have a few hours a few days. For the generation of complex tables and mathematical formulas, which was particularly conspicuous. So it is very suitable for producing high quality print technology and math class documentation. The system is also suitable for producing all of the other kinds of documents from simple letters to complete books.

1). Similarly, after the installation of the above, we once again export a document, or an error occurs, the error and the last time is not the same, the lack of toolsMiktexAs follows:
Here Insert Picture Description
2), to open the terminal downloadsnbconvertPlug-in, as follows:

pip install nbconvert

Here Insert Picture Description
2), according to prompts to downloadMiktexTool at the following link:
https://nbconvert.readthedocs.io/en/latest/install.html#installing-tex
Here Insert Picture Description
3), scroll down the page that opens, findWindows: MikTex, Click, enter the download page:
Here Insert Picture Description
Download page, click download, and then select the windows, and finally click download to download, as follows:
Here Insert Picture Description
Here Insert Picture Description
4), the file is probably more than 200 M, download speed is very fast, the download is complete, install the the corresponding page
Here Insert Picture Description
Here Insert Picture Description
empathy, choose a suitable location for installation, and finally, close jupyter run, and then re-enter, pdf files exported
after routing problem here, we need not consider the above two tools during the installation, it will automatically import to the system environment variables to go inside!

3, a md file in PDF format export

1), run again jupyter, we write good ipynb into the document and then export to PDF documents as follows:
Here Insert Picture Description
2), export PDF documents into their appropriate location:
Here Insert Picture Description
3), after the installation of the above packages for the initial export, will be prompted to install various packages, we chooseinstallOn the OK:
Here Insert Picture Description
4), the export will take time, patience, will appear the following prompt to complete the conversion:
Here Insert Picture Description
5), export PDF as follows:
Here Insert Picture Description
Comparison source document:
Here Insert Picture Description
you can see, can not be exported Chinese! But Kazakhstan can export picture, the problem is still solved in the current Lin Jun seniors, and other subsequent update will solve this blog, write a solution Oh!

Editing tools RECOMMENDED another convert PDF documents

Typora is a real-time preview of Markdown text editor. It has OS X, Windows, Linux
version of the three platforms, and because still in beta, is completely free.

1)、TyporaEditing tools use very short answer, transformation is also very fast!
Tencent housekeeper software can be downloaded:
Here Insert Picture Description
2), md import documents were PDF conversion:
Here Insert Picture Description
3), the content of the export is as follows:
Here Insert Picture Description
As can be seen, you can export the Chinese, the perfect solution to the problem to PDF Chinese Oh!
That's all for this blog, I hope to be able to help small partners, remember thumbs attention it!
Problems encountered little friends remember the comments area leave a message, Lin Jun seniors will see the answer for everyone, the seniors are not too cold!

Chen programming years and one day in January ^ _ ^

Published 70 original articles · won praise 85 · views 10000 +

Guess you like

Origin blog.csdn.net/qq_42451251/article/details/105324764
Recommended