Last active
June 17, 2021 15:44
-
-
Save PinZhu92/0d5db08a0207cec01fe185cea8403103 to your computer and use it in GitHub Desktop.
Test embedding
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"cells": [{"cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": ["import numpy as np\n", "from bqplot import pyplot as plt"]}, {"cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": ["size = 100\n", "np.random.seed(0)\n", "x_data = np.arange(size)\n", "y_data = np.cumsum(np.random.randn(size) * 100.0)"]}, {"cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": ["plt.figure(title='My First Plot')\n", "plt.plot(x_data, y_data)\n", "plt.show()"]}], "metadata": {"kernelspec": {"display_name": "Python 3", "language": "python", "name": "python3"}, "language_info": {"codemirror_mode": {"name": "ipython", "version": 3}, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.4"}}, "nbformat": 4, "nbformat_minor": 2} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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