Skip to content

Instantly share code, notes, and snippets.

@PinZhu92
Last active June 17, 2021 15:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PinZhu92/0d5db08a0207cec01fe185cea8403103 to your computer and use it in GitHub Desktop.
Save PinZhu92/0d5db08a0207cec01fe185cea8403103 to your computer and use it in GitHub Desktop.
Test embedding
<html>
<head>
<title>An active web page</title>
<script type="text/x-thebe-config">
{
bootstrap: true,
selector: "pre",
binderOptions: {
repo: "binder-examples/requirements",
},
kernelOptions: {
name: "python3",
},
}
</script>
<script type="text/javascript" src="https://unpkg.com/thebe@latest"></script>
</head>
<body>
<h1>My web page with code samples</h1>
Lorem ipsum dolor sit amet, consectetur adipiscing elit:
<pre>
1+1
</pre>
Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua:
<pre>
%matplotlib inline
import numpy as np
import matplotlib.pyplot as plt
x = np.linspace(0,10)
plt.plot(x, np.sin(x))
plt.plot(x, np.cos(x))
</pre>
</body>
</html>
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
numpy==1.18.1
pandas==1.0.3
matplotlib==3.4.1
bqplot==0.11.0
nbinteract==0.2.5
ipyleaflet==0.12.3
scipy==1.5.4
sphinx_copybutton
sphinx_book_theme
sphinx-js
sphinx>2
myst_parser
Test each of the following solutions:
1. Embed Interactive Jupyter Notebooks in Static Websites for Free | Ezequiel Leonardo Castaño Personal Website (elc.github.io)
2. executablebooks/thebe: ThebeLab: turning static HTML pages into live documents (github.com)
and document results in the respective child tasks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment