{"id":18300435,"url":"https://github.com/comet-ml/streamlit-jupyter-magic","last_synced_at":"2025-04-05T13:36:11.966Z","repository":{"id":199824924,"uuid":"696260422","full_name":"comet-ml/streamlit-jupyter-magic","owner":"comet-ml","description":"A local streamlit server for Jupyter environments","archived":false,"fork":false,"pushed_at":"2024-02-04T16:41:31.000Z","size":73,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-10-08T10:24:46.324Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/comet-ml.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-25T12:09:36.000Z","updated_at":"2024-06-04T07:19:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"94a52bf5-83f4-4e55-b53c-b01e1725cf7e","html_url":"https://github.com/comet-ml/streamlit-jupyter-magic","commit_stats":null,"previous_names":["comet-ml/streamlit-jupyter-magic"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comet-ml%2Fstreamlit-jupyter-magic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comet-ml%2Fstreamlit-jupyter-magic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comet-ml%2Fstreamlit-jupyter-magic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comet-ml%2Fstreamlit-jupyter-magic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/comet-ml","download_url":"https://codeload.github.com/comet-ml/streamlit-jupyter-magic/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223192520,"owners_count":17103564,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T15:12:28.803Z","updated_at":"2024-11-05T15:12:29.479Z","avatar_url":"https://github.com/comet-ml.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# streamlit-jupyter-magic\n\nA local streamlit server for Jupyter environments, and more.\n\n## Installation\n\n```python\npip install streamlit-jupyter-magic\n```\n\n## Example\n\n```python\n# Cell:\nimport streamlit_jupyter_magic\n\n# Cell:\n%%streamlit \n\nimport streamlit as st\n\nst.title(\"This is a Test\")\n\nif st.button(\"Click me!\"):\n    st.button(\"Click me again!\")\n```\n\nResults in the following:\n\n![Jupyter Magic Demo](https://github.com/comet-ml/streamlit-jupyter-magic/blob/main/images/demo.gif?raw=true)\n\n## Limitations\n\n1. Currently doesn't work on colab, due to a couple of colab bugs\n2. Currently doesn't work in multiple, simultaneous notebooks in same environment\n\n## Flags\n\nUse any of these flags with `%%streamlit FLAGS...`\n\n* `--port NUMBER` - set the port for streamlit to use; default is 5000\n* `--host HOST` - set the host for streamlit to use; default is \"localhost\"\n* `--name NAME` - set the name (a unique instance id) for this cell app; default uses Jupyter cell ID\n* `--width VALUE` - set the app width, such as \"100%\" \n* `--height VALUE` - set the app height, such as \"700px\" \n* `--use-colab-workaround` - on colab, use a window rather than iframe, but still doesn't work (colab bug)\n\n## Under the hood\n\n`streamlit-jupyter-magic` uses streamlit pages to keep memory usage down.\n\nThe magic code can be found in: [streamlit_jupyter_magic/\\_\\_init__.py](https://github.com/comet-ml/streamlit-jupyter-magic/blob/main/streamlit_jupyter_magic/__init__.py)\n\nThe rest of the code is utility code for managing the streamlit server.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomet-ml%2Fstreamlit-jupyter-magic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcomet-ml%2Fstreamlit-jupyter-magic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomet-ml%2Fstreamlit-jupyter-magic/lists"}