embedding image into jupyter notebook and exporting to HTML

后端 未结 3 1422
情话喂你
情话喂你 2020-12-31 15:49

I am running Python 3.7 on Windows using pycharm. I have a jupyter notebook and I would like to embed an image into the notebook. I know all the ways of doing standard embed

3条回答
  •  甜味超标
    2020-12-31 16:28

    You can install the Unofficial Jupyter Notebook Extensions.

    It has some interesting extensions (e.g. spell checker, collapsible headings, ...). One of the extensions is Export HTML With Embedded Images which exactly does what you want.

    To install Nbextensions using pip do the following:

    $ pip install jupyter_contrib_nbextensions
    $ pip install jupyter_nbextensions_configurator
    $ jupyter contrib nbextension install --user 
    $ jupyter nbextensions_configurator enable --user
    

    Then you will see in your Jupyter homepage a new tab (Nbextensions), where you can enable and configure different extension.

    After enabling the "Export HTML With Embedded Images", you will see the corresponding option in the "File-Download as" menu.

提交回复
热议问题