streamlit-jupyter-magic
A local streamlit server for Jupyter environments, and more.
Installation
pip install streamlit-jupyter-magic
Example
# Cell:
import streamlit_jupyter_magic
# Cell:
%%streamlit
import streamlit as st
st.title("This is a Test")
if st.button("Click me!"):
st.button("Click me again!")
Results in the following:
Limitations
- Currently doesn't work on colab, due to a couple of colab bugs
- Currently doesn't work in multiple, simultaneous notebooks in same environment
Flags
Use any of these flags with %%streamlit FLAGS...
--port NUMBER- set the port for streamlit to use; default is 5000--host HOST- set the host for streamlit to use; default is "localhost"--name NAME- set the name (a unique instance id) for this cell app; default uses Jupyter cell ID--width VALUE- set the app width, such as "100%"--height VALUE- set the app height, such as "700px"--use-colab-workaround- on colab, use a window rather than iframe, but still doesn't work (colab bug)
Under the hood
streamlit-jupyter-magic uses streamlit pages to keep memory usage down.
The magic code can be found in: streamlit_jupyter_magic/__init__.py
The rest of the code is utility code for managing the streamlit server.
Metadata
Release files for streamlit-jupyter-magic 1.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| streamlit_jupyter_magic-1.2.1-py3-none-any.whl | Python 3 | none | any | Details for streamlit_jupyter_magic-1.2.1-py3-none-any.whl |
Release files / streamlit_jupyter_magic-1.2.1-py3-none-any.whl
| Download URL | streamlit_jupyter_magic-1.2.1-py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6193c5b0c44dc55ceccf0e9a5a873ed8e640a967496d54f801bc8220c1f8fb51
|
|
BLAKE2b-256 checksum How to use checksums |
955ba07c21460e6ea87b4becbe29f1ac8ddcfc01ef983c29e937d631b21d7284
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.13
|
Security for streamlit-jupyter-magic 1.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.