To be able to edit code and run cells, you need to run the notebook yourself. Where would you like to run the notebook?

This notebook takes about 20 seconds to run.

In the cloud (experimental)

Binder is a free, open source service that runs scientific notebooks in the cloud! It will take a while, usually 2-7 minutes to get a session.

On your computer

(Recommended if you want to store your changes.)

  1. Copy the notebook URL:
  2. Run Pluto

    (Also see: How to install Julia and Pluto)

  3. Paste URL in the Open box

Frontmatter

If you are publishing this notebook on the web, you can set the parameters below to provide HTML metadata. This is useful for search engines and social media.

Author 1
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n<svg width=\"100%\" height=\"100%\" viewBox=\"0 0 662 163\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink" ⋯ 13822 bytes ⋯ "ejoin:miter;stroke-miterlimit:4;\"/>\n                    <circle id=\"circle20\" cx=\"519.903\" cy=\"266.676\" r=\"46.772\" style=\"fill:rgb(107,171,91);stroke:rgb(59,151,46);stroke-width:8.5px;stroke-linejoin:miter;stroke-miterlimit:4;\"/>\n                </g>\n            </g>\n        </g>\n    </g>\n</svg>\n"
👀 Reading hidden code
svg_data = read(download("https://raw.githubusercontent.com/fonsp/Pluto.jl/dd0ead4caa2d29a3a2cfa1196d31e3114782d363/frontend/img/logo_white_contour.svg"), String)
298 ms

Displayed as SVG-inside-HTML

You cannot save this image by right-clicking it :(

👀 Reading hidden code
215 μs

Here is the image:

👀 Reading hidden code
HTML("""
<p>Here is the image:</p>
""")
17.3 μs

Displayed as <img>

Right-click to save!

👀 Reading hidden code
214 μs
PlutoUI.Resource(src, mime, Tuple{}())
👀 Reading hidden code
4.0 ms
MIME type image/svg+xml
mime = MIME"image/svg+xml"()
👀 Reading hidden code
2.6 ms
"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+Cjxzdmcgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDY2MiAx" ⋯ 18655 bytes ⋯ "wIiBjeD0iNTE5LjkwMyIgY3k9IjI2Ni42NzYiIHI9IjQ2Ljc3MiIgc3R5bGU9ImZpbGw6cmdiKDEwNywxNzEsOTEpO3N0cm9rZTpyZ2IoNTksMTUxLDQ2KTtzdHJva2Utd2lkdGg6OC41cHg7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1taXRlcmxpbWl0OjQ7Ii8+CiAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPgo="
src = join([
"data:",
string(mime),
";base64,",
Base64.base64encode(svg_data)
])
👀 Reading hidden code
90.3 ms

You can add PlutoUI as a dependency to PenPlots.jl, or you should feel free to copy the relevant source code! PlutoUI.jl is Unlicensed, which means that you can take snippets and use it how you like.

👀 Reading hidden code
187 μs
using PlutoUI
👀 Reading hidden code
205 ms
using Base64
👀 Reading hidden code
135 μs