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. Download the notebook:
  2. Run Pluto

    (Also see: How to install Julia and Pluto)

  3. Open the notebook file

    Type the saved filename 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
👀 Reading hidden code
137 ms

A IIIF viewer in Pluto: version 2

👀 Reading hidden code
394 μs

Enter a manifest URL:

👀 Reading hidden code
170 μs
👀 Reading hidden code
80.9 ms
👀 Reading hidden code
121 ms











👀 Reading hidden code
917 μs

Mechanics: use TIFY to browse image

👀 Reading hidden code
2.4 ms

Prerequisites: we'll need the HypertextLiteral package

👀 Reading hidden code
155 μs
using HypertextLiteral
👀 Reading hidden code
83.3 μs

Step 1: load the TIFY library and its accompanying CSS:

👀 Reading hidden code
130 μs
@htl("""
<script src="https://cdn.jsdelivr.net/npm/tify@0.31.0/dist/tify.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/tify@0.31.0/dist/tify.css">
</script>
""")
👀 Reading hidden code
34.9 μs

Step 2: Instantiate a TIFY object:

👀 Reading hidden code
113 μs
@htl("""
<script>
new Tify({
container: '#tify',
manifestUrl: $manifesturl,
})
</script>
""")
👀 Reading hidden code
211 ms