Skip to content

Instantly share code, notes, and snippets.

@holdenweb
Created March 31, 2020 11:51
Show Gist options
  • Save holdenweb/fb8de56e33cdfaef9218673915cc7f1c to your computer and use it in GitHub Desktop.
Save holdenweb/fb8de56e33cdfaef9218673915cc7f1c to your computer and use it in GitHub Desktop.
Simple example of how to serve iFrames from a notebook-local server thread

Place the notebook in an empty directory and run it. This will start a thread running a simple HTTP server and a local index.html file, which will be served in response to the root URL as demoinstrated in the notebook.

More complex content is left as as exercise to the reader.

Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment