Using PPT to produce weekly or monthly reports is a very time-consuming work, but business analysis students are still unavoidable to use PPT, other automated reporting tools are not, can only be addicted to PPT.

Data analysts, on the other hand, can choose R Markdown or use Jupyter Notebook in conjunction with PyEcharts to generate automated reports.

1. Convert the notebook to an HTML file

The front page of the notebook includes the ability to export files to HTML. If you use this function, the exported HTML file contains code blocks.

2. Hide the code in the HTML file

If you are generating automated reports, there is no need for the code block to be displayed. How do you do this?



After opening the terminal, run the shell command

jupyter nbconvert --to html --no-input f:/Python/file/PyEcharts/Untitled1.ipynb
Copy the code

If -no-input is not added, an HTML file untitled1.html will be generated in the path untitled1.ipynb by default. This HTML file contains the contents of the code block. The — no-input argument hides the code block in the notebook, showing only the result of the block operation and the cells in the Notebook whose type is “Markdown.”

After the shell command is executed, the following information is displayed. The file is successfully converted.

[NbConvertApp] Converting notebook f:/Python/file/PyEcharts/Untitled1.ipynb to html
[NbConvertApp] Writing 385793 bytes to f:/Python/file/PyEcharts\Untitled1.html
Copy the code



👏👏👏 Take a look at our previous article 😃 👏

🌺 Excel data analysis tool library – correlation coefficient section

🌺 Dry stuff, hand in hand to teach you correlation analysis

🌺 5 years of data analysis, summary.

🌺 User segmentation and portrait analysis

🌺 K- nearest neighbor algorithm and practice

Welcome to our wechat official account.Home of data analysts

Scan the QR code to follow us

💁 provides career planning, resume guidance, interview counseling services

QQ communication group: 254674155