A blog post/tutorial for the Practical Business Python blog that teaches how to create web applications from jupyter notebooks and then deploy them.
Visit the live dashboard (might take a bit to load because of binder)
Clone the repo:
$ git clone https://github.com/duarteocarmo/interactive-dashboard-post.gitNavigate to it:
$ cd interactive-dashboard-postCreate a virtual environment:
$ virtualenv envActivate the environment:
$ . env/bin/activateInstall the requirements:
(env) $ pip install -r requirements.txt Launch jupyter lab:
(env) $ jupyter labIt should launch automatically. If not, check this.
๐จ troubleshooting ๐จ
If the plotly express plots are not showing then try:
(env) $ jupyter labextension install @jupyterlab/plotly-extensionIf you still have problems, follow these instructions.
Follow the instructions above until you have the requirements installed, and then:
(env) $ voila notebooks/Dashboard.ipynbThis should launch the dashboard in http://localhost:8866/

