Skip to content

Instantly share code, notes, and snippets.

@jtpio
Last active August 17, 2023 09:37
Show Gist options
  • Save jtpio/6eb7c8cf9d27e91dd7097ad16ab4d140 to your computer and use it in GitHub Desktop.
Save jtpio/6eb7c8cf9d27e91dd7097ad16ab4d140 to your computer and use it in GitHub Desktop.
Voila 0.5.0 on Binder

Voila 0.5.0 on Binder

voila-logo

Try it on Binder!

Voilà JupyterLab
Binder Binder
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.
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# So easy, *voilà*!\n",
"\n",
"In this example notebook, we demonstrate how Voilà can render custom Jupyter widgets such as [bqplot](https://github.com/bloomberg/bqplot). "
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import warnings\n",
"warnings.filterwarnings('ignore')"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
"from bqplot import pyplot as plt\n",
"\n",
"plt.figure(1, title='Line Chart')\n",
"np.random.seed(0)\n",
"n = 200\n",
"x = np.linspace(0.0, 10.0, n)\n",
"y = np.cumsum(np.random.randn(n))\n",
"plt.plot(x, y)\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.7.3"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
bqplot
ipywidgets~=8.0
jupyterlab~=4.0.5
matplotlib
nbconvert>=7
pandas
voila==0.5.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment