Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
195 views
in Technique[技术] by (71.8m points)

python - Download Jupyter Notebook as .html File with Image Importing Code Excluded (Not Shown)

I have the following output on my local Jupyter Notebook:

enter image description here

I want to "Download As" this Jupyter Notebook as a .html file. But when I open the html file I only want to see the image and not the block of code in In [6]. How do I do this?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You can use the markdown in Jupyter Notebook to render your image file.

enter image description here

You can change your shell from code to markdown and run this to get image.

![Test](test.png)

enter image description here

If image file is in another folder, you can do the following:

![<caption>](folder/image_filename.png)

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...