My question is related to the wish of publishing a self contained notebook
I have a Markdown cell in a notebook of mine that references an external image file
so far
![](example.svg "Example")
so good
Is it possible to inline the file content in the MD cell?
For this, first, convert your cell to a markdown cell and then go to Edit -> Insert Image which will open up a dialog box asking you to locate the image from your computer.
first, change the type of the cell to -> markdown. Step 2: After that click edit in the jupyter notebook menu. after that click 'insert image'. Edit -> insert image.
Press Esc key, type m for markdown cell, press Enter key. The cursor is now in the markdown cell waiting for instructions. Type your code or paste a code block. If code is pasted, it will most likely need to become aligned below the tickmarks.
Just double click on the markdown cell. Edit what you want to and Run. It will reflect the changes. Save your notebook.
This method doesn't require an internet connection…
<svg>
markup (eg. paste svg at base64encode.org)![alt text](data:image/svg+xml,<paste_your_svg_string_here> "title")
The result would be a string similar to the following that can be inserted into a Jupyter Notebook Markdown cell…
![svg image](data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22100%22%20height%3D%22100%22%20viewBox%3D%220%200%20100%20100%22%3E%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2240%22%20stroke%3D%22black%22%20stroke-width%3D%223%22%20fill%3D%22red%22%20/%3E%3C/svg%3E%0A)
Yes, It is possible to include SVG image in jupyter notebook.
![Alt text](https://mirrors.creativecommons.org/presskit/logos/cc.logo.svg)
<img style="float: right;" src="https://mirrors.creativecommons.org/presskit/logos/cc.logo.svg">
I tried these options on Jupyter Notebook Server version 4.3.1
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With