{"id":21064731,"url":"https://github.com/ideonate/bokeh-root-cmd","last_synced_at":"2025-09-12T04:39:42.876Z","repository":{"id":47084007,"uuid":"271307652","full_name":"ideonate/bokeh-root-cmd","owner":"ideonate","description":"Command line wrapper to run a named Bokeh script/folder as root URL","archived":false,"fork":false,"pushed_at":"2021-09-14T10:17:16.000Z","size":35,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-26T07:52:24.764Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/ideonate.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-10T15:02:17.000Z","updated_at":"2022-04-28T19:22:34.000Z","dependencies_parsed_at":"2022-09-10T22:00:21.039Z","dependency_job_id":null,"html_url":"https://github.com/ideonate/bokeh-root-cmd","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ideonate%2Fbokeh-root-cmd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ideonate%2Fbokeh-root-cmd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ideonate%2Fbokeh-root-cmd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ideonate%2Fbokeh-root-cmd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ideonate","download_url":"https://codeload.github.com/ideonate/bokeh-root-cmd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254456180,"owners_count":22074125,"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-19T17:51:28.751Z","updated_at":"2025-05-16T02:32:46.466Z","avatar_url":"https://github.com/ideonate.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bokeh-root-cmd\n\nCommand line wrapper to run one or more named Bokeh/Panel scripts/folders as root URL.\n\nThis project is used in [ContainDS Dashboards](https://github.com/ideonate/cdsdashboards), which is a user-friendly\nway to launch Jupyter notebooks as shareable dashboards inside JupyterHub. Also works with Bokeh, Dash, Panel, Streamlit and other visualization frameworks.\n\nThe published PyPI/Conda packages DO NOT bring in Bokeh or Panel as explicit dependencies, so you may \nneed to install those separately in your environment.\n\n## Install and Run\n\nInstall using pip.\n\n```bash\npip install bokeh-root-cmd\n```\n\nThe file to start is specified on the command line, for example:\n\n```bash\nbokeh-root-cmd ~/Dev/mybokehscript.py\n```\n\nBy default the server will listen on port 8888. To specify a different **port**, use the --port flag.\n\n```bash\nbokeh-root-cmd --port=8888 ~/Dev/mybokehscript.py\n```\n\nTo use the Panel server use the --server flag.\n\n```bash\nbokeh-root-cmd --server=panel ~/Dev/mybokehscript.py\n```\n\nTo run directly in python: `python -m bokeh_root_cmd.main \u003crest of command line\u003e`\n\n## Other command line args\n\n--allow-websocket-origin\n\n--debug\n\n--ip\n\n## Tests\n\nIn order to be able to test manually you would need to `pip install panel pytest`. This will also install bokeh.\n\n### Automated Tests\n\n```bash\npytest tests.py\n```\n\n### Single File on Bokeh Server\n\nRun `bokeh-root-cmd test_apps/test_bokeh_hello.py` and verify the app is running at `http://localhost:8888`.\n\n### Single File on Panel Server\n\nRun `bokeh-root-cmd --server=panel test_apps/test_panel_hello.py` and verify the app is running at `http://localhost:8888`.\n\n### Multiple Files on Bokeh Server\n\nRun `bokeh-root-cmd test_apps/*.py` and verify the app index is running at `http://localhost:8888` and test apps at `http://localhost:8888/test_bokeh_hello` and `http://localhost:8888/test_panel_hello`.\n\n### Multiple Files on Panel Server\n\nRun `bokeh-root-cmd --server=panel test_apps/*.py` and verify the app index is running at `http://localhost:8888` and test apps at `http://localhost:8888/test_bokeh_hello` and `http://localhost:8888/test_panel_hello`. Note that no `ready-check' app is included in the index list.\n\nYou can also specify them individually\n\nRun `bokeh-root-cmd --server=panel test_apps/test_bokeh_hello.py test_apps/test_panel_hello.py` and verify the app index is running at `http://localhost:8888` and test apps at `http://localhost:8888/test_bokeh_hello` and `http://localhost:8888/test_panel_hello`. Note that no `ready-check' app is included in the index list.\n\n\nThank you to [MarcSkovMadsen](https://github.com/MarcSkovMadsen) for contributions.\n\n## Changelog\n\n0.1.2 - Fix for Panel root dashboard when serving multiple apps. Previously caused problems in some browsers.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fideonate%2Fbokeh-root-cmd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fideonate%2Fbokeh-root-cmd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fideonate%2Fbokeh-root-cmd/lists"}