简体   繁体   中英

anybody know how to save image output from cells in jupyter notebook?

unlike google colab i cant right click to save the image, i use vscode on a chromebook with linux beta, it would be helpful if you provide step-by-step instruction. I am also new to code and the notebook uses python

ps this is for dall.e flow-jupyter

vscode单元格截图

On the right we have two options, first one is to expand image (or zoom) and second option is to save image.

But best option is to use code to save image instead of saving images manually. For example, if you want save pandas graph, then

import pandas as pd
import matplotlib.pyplot as plt # pandas uses matplotlib in the backend

df = pd.DataFrame({"a": list(range(50))})
df["a"].plot()
plt.savefig("test.png")

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM