question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dash Bio apps need to be moved to dash-bio.plotly.host

See original GitHub issue

In accordance with https://github.com/plotly/streambed/issues/12263, we are making our index.py app obsolete. The applications we currently have are not true standalone apps, since they just modify the layout on the main index.py app. Right now, index.py lives on that server (https://dash-gallery.plotly.host/dash-bio) and its portal (https://dash-bio.plotly.host/Portal/)

What we need to do:

  • Publish the dash bio package to test.pypi.org
  • Separate the requirements for each app from our requirements.txt file, add in the dash_bio dependency
  • Set up a file structure within the repository that will house all of the applications. I’m thinking just a folder called demo_apps that contains a folder for each app
  • Copy each app’s relevant sample_data files into its folder
  • Create all the necessary files (looks like we need a config.py and runtime.txt) for each app in its folder
  • Once the apps are on the portal, tag them (this looks like a really cool feature we should take advantage of!) with things like “genomics”, “visualizations”, etc.

Let’s get this done before I fly out to Boston for training with Amgen (13 Feb)! They’re a huge pharmaceutical company and it would be awesome to show off Dash Bio and sell them on DDS simultaneously 😃 let’s get that 🍞

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
Bachibouzoukcommented, Jan 25, 2019

@shammamah : I did

import dash


def run_standalone_app(layout, callbacks, port=8050, debug=True):

    app = dash.Dash()
    app.scripts.config.serve_locally = True
    app.config["suppress_callback_exceptions"] = True

    server = app.server

    app.layout = layout()  # assign layout
    callbacks(app)  # register all of the callbacks
    app.run_server(debug=debug, port=port)

in a app_standalone.py file in tests/dashbio_demos/utils, then

if __name__ == '__main__':
    from tests.dashbio_demos.utils.app_standalone import run_standalone_app
    run_standalone_app(layout, callbacks)

at the end of an app file works (for me at least). Then the css needs to be linked properly 😃

1reaction
mkcorcommented, Jan 29, 2019

@shammamah Oh, of course it works locally!! haha Will edit 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dash Bio | Dash for Python Documentation | Plotly
Dash Bio is a suite of bioinformatics components that make it simpler to analyze and visualize bioinformatics data and interact with them in...
Read more >
plotly/dash-bio: Open-source bioinformatics components for ...
Run Dash Bio in a JupyterLab environment. Create a virtual environment: The following steps require a virtual environment tool to be installed on...
Read more >
Dash Enterprise App Gallery
Dash Enterprise App Gallery. This public instance of the Dash Enterprise app manager runs >60 Dash apps for 100s of concurrent users on...
Read more >
Announcing Dash Bio 1.0.0 - YouTube
We're thrilled to announce that Dash Bio 1.0.0 is released! Plotly's Adam Schroeder, Community Manager, sits down with Emilie Burton, ...
Read more >
dash-bio - PyPI
Demo: https://dash-gallery.plotly.host/Portal/?search=Bioinformatics ... urlreq from dash import Dash, html import dash_bio as dashbio app = Dash(__name__) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found