{"id":23988867,"url":"https://github.com/veit/flask-bokeh-dashboard","last_synced_at":"2025-02-25T03:13:10.927Z","repository":{"id":43193956,"uuid":"203548988","full_name":"veit/flask-bokeh-dashboard","owner":"veit","description":"Walking skeleton for Bokeh plots in a Material Design dashboard interacting with Flask.","archived":false,"fork":false,"pushed_at":"2024-04-17T08:15:32.000Z","size":228,"stargazers_count":33,"open_issues_count":3,"forks_count":11,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-01-07T16:18:38.742Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/veit.png","metadata":{"files":{"readme":"README.rst","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,"roadmap":null,"authors":null,"dei":null}},"created_at":"2019-08-21T09:14:43.000Z","updated_at":"2024-08-26T08:44:14.000Z","dependencies_parsed_at":"2024-02-06T06:01:04.162Z","dependency_job_id":null,"html_url":"https://github.com/veit/flask-bokeh-dashboard","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veit%2Fflask-bokeh-dashboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veit%2Fflask-bokeh-dashboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veit%2Fflask-bokeh-dashboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veit%2Fflask-bokeh-dashboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/veit","download_url":"https://codeload.github.com/veit/flask-bokeh-dashboard/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240593178,"owners_count":19825939,"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":"2025-01-07T16:18:39.912Z","updated_at":"2025-02-25T03:13:10.896Z","avatar_url":"https://github.com/veit.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"===============================================\nMaterial Dashboard with Bokeh embedded in Flask\n===============================================\n\n|Contributors| |License|\n\n.. |Contributors| image:: https://img.shields.io/github/contributors/veit/flask-bokeh-dashboard.svg\n   :target: https://github.com/veit/flask-bokeh-dashboard/graphs/contributors\n.. |License| image:: https://img.shields.io/github/license/veit/flask-bokeh-dashboard.svg\n   :target: https://github.com/veit/flask-bokeh-dashboard/blob/master/LICENSE\n\nFeatures\n========\n\nThe package provides a starter pack with an interactive `Bokeh\n\u003chttps://bokeh.pydata.org\u003e`_ plot embedded in a `Material Design\n\u003chttps://material.io/\u003e`_ Dashboard, which can send parameters from a flask form\nto Bokeh.\n\n.. image:: screenshot.png\n   :scale: 53%\n   :alt: Material Dashboard with Bokeh embedded in Flask\n\n.. note::\n   Please keep in mind that this is only a lightweight example of how Flask can\n   affect the rendering of the bokeh plot. The change in scale is out of scope.\n\nQuickstart\n==========\n\nBefore you install Python packages, you must meet a few requirements.\n\n#. Make sure you use the desired Python version:\n\n   .. code-block:: console\n\n    $ python --version\n    Python 3.7.3\n\n   Only Python \u003e=3.6 is supported.\n\n#. Make sure that `Pip\n   \u003chttps://python-basics-tutorial.readthedocs.io/en/latest/libs/glossary.html#term-pip\u003e`_\n   is installed:\n\n   .. code-block:: console\n\n    $ pip --version\n    pip 18.1\n\n#. If Pip isn’t installed, you can install it with:\n\n   .. code-block:: console\n\n    $ sudo apt install python3-venv python3-pip\n\n#. Install `Pipenv \u003chttps://docs.pipenv.org\u003e`_:\n\n   .. code-block:: console\n\n    $ pip3 install --user pipenv\n      Downloading pipenv-2018.7.1-py3-none-any.whl (5.0MB): 5.0MB downloaded\n    Requirement already satisfied (use --upgrade to upgrade): virtualenv in /usr/lib/python3/dist-packages (from pipenv)\n    Installing collected packages: pipenv, certifi, pip, setuptools, virtualenv-clone\n    …\n    Successfully installed pipenv certifi pip setuptools virtualenv-clone\n    Cleaning up...\n\n#. Download:\n\n   .. code-block:: console\n\n    $ curl -O https://github.com/veit/flask-bokeh-dashboard/archive/master.zip\n    $ unzip master.zip\n\n#. Create virtual environment:\n\n   .. code-block:: console\n\n    $ cd flask-bokeh-dashboard\n    $ pipenv install\n    Creating a virtualenv for this project…\n    …\n    Updated Pipfile.lock\n\n    Installing dependencies from Pipfile.lock Updated Pipfile.lock (f042ee)…\n    …\n\n#. Run the dashboard with the `gunicorn\n   \u003chttp://docs.gunicorn.org/en/stable/run.html\u003e`_ command:\n\n   .. code-block:: console\n\n    $ pipenv run gunicorn -w 1 main:app\n    [2021-09-08 10:10:16 +0200] [55490] [INFO] Starting gunicorn 20.1.0\n    [2021-09-08 10:10:16 +0200] [55490] [INFO] Listening at: http://127.0.0.1:8000 (55490)\n    [2021-09-08 10:10:16 +0200] [55490] [INFO] Using worker: sync\n    [2021-09-08 10:10:16 +0200] [55498] [INFO] Booting worker with pid: 55498\n\n   .. note::\n      The ``w`` option can be used to specify the number of workers.\n\n#. Visit http://127.0.0.1:8000 and it should look like the screenshot above.\n\n#. You can shut down the service in the console with ``ctrl-c``.\n\nPull requests\n=============\n\nIf you have differences in your preferred setup, I encourage you to fork this\nto create your own version. I also accept pull requests on this, if they are\nsmall, atomic, and if they make my own packaging experience better.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fveit%2Fflask-bokeh-dashboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fveit%2Fflask-bokeh-dashboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fveit%2Fflask-bokeh-dashboard/lists"}