rendering with .py to create a dashboard using streamlit #9872
Replies: 3 comments 7 replies
-
You have an obvious error: Also I suggest to read the dashboard guide at https://quarto.org/docs/dashboards/. It's not simply about using a Jupyter Notebook with ![]() Edit: your metadata are set in a Python code cell. It needs to be markdown or as above the default will be I suggest you start from scratch and add elements following the guide or using a pre-existing Jupyter based dashboard that you modify. |
Beta Was this translation helpful? Give feedback.
-
I believe some clarification may help here. What are you trying to do exactly ? Are you trying to show a streamlit dashboard in a Quarto website ? The above answer assumes the latter, but I am wondering if you are not trying to do the former. 🤔 |
Beta Was this translation helpful? Give feedback.
-
@Kkhurana007 Could you confirm something: does streamlit require a running Python environment to work? it does seem so. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
when i try to run the dashboard with Streamlit, it works fine. here is the code: https://github.com/Kkhurana007/dashboarding/blob/main/dashboard.py
But, I want to render it to my blog using Quarto. So, I converted
.py
to.ipynb
file: https://github.com/Kkhurana007/dashboarding/blob/main/dashboard.ipynbAs a result, Jupyter notebook gets displayed and not the interactive dashboard. Also, when i run it in the locally, I get DeltaGenerato()

Furthermore, I try to run the
ipykernel_launcher.py
argument. details copied below:import sys
from pathlib import Path
if name == "main":
# Remove the CWD from sys.path while we load stuff.
# This is added back by InteractiveShellApp.init_path()
if sys.path[0] == "" or Path(sys.path[0]) == Path.cwd():
del sys.path[0]
I get directed here:
If anyone can help to create an interactive dashboard from
.ipynb
?Sincerely,
Kunal Khurana
Beta Was this translation helpful? Give feedback.
All reactions