I’ve seen a lot of resources for how to run a Streamlit app from a notebook, or convert a notebook into a Streamlit app.
However, I want to do the opposite. I want to embed a Jupyter notebook environment into my Streamlit app so that my users can run custom code from within the app.
Is this possible? Can someone share how they think I might be able to accomplish this?
That’s really cool. But I think it would not work in my particular case. We have an air-gapped application… so no access to jupyterlit.github.io
Plus we would like the user to be able to query a db which is on prem as well, but reachable by the streamlit app.
The streamlit app is running in a docker container and I’m wondering if it would be possible to have a jupyter server running in a separate container and have that embedded in the streamlit app? Am I talking nonsense?
I’m not sure if there’s a way to do that, sorry. One similar thing you can do is something like streamlit-playground/streamlit_app.py at main · blackary/streamlit-playground · GitHub, which gives you a code editor, and then the resulting streamlit app below it. I have the editor hidden by requiring a special password to be passed as a query parameter in the URL, but that’s just because I have it publicly accessible. The end result is something that looks like this
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.