Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 194
Async dash bio#430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Async dash bio #430
Changes from all commits
97c98400b2ca02f1fd25928f761b82082a1bb2a3158ee0e74c451173bb9dd7eb1eea2089d602724300c059814e1File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,9 @@ | ||
| { | ||
| "presets": ["@babel/env", "@babel/react"] | ||
| } | ||
| "presets": [ | ||
| "@babel/env", | ||
| "@babel/react" | ||
| ], | ||
| "plugins": [ | ||
| "@babel/plugin-syntax-dynamic-import" | ||
| ] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -32,17 +32,50 @@ | ||
| _this_module = _sys.modules[__name__] | ||
| async_resources = [ | ||
| 'alignment', | ||
| 'circos', | ||
| 'ideogram', | ||
| 'moleculeviewer2', | ||
| 'moleculeviewer3', | ||
| 'needle', | ||
| 'onco', | ||
| 'sequence', | ||
| 'speck' | ||
| ] | ||
| _js_dist = [] | ||
| _js_dist.extend([{ | ||
| 'relative_package_path': 'async~{}.js'.format(async_resource), | ||
| 'external_url': ( | ||
| 'https://unpkg.com/dash-bio@{}' | ||
| '/dash_bio/async~{}.js' | ||
| ).format(__version__, async_resource), | ||
| 'namespace': 'dash_bio', | ||
| 'async': True | ||
| } for async_resource in async_resources]) | ||
| _js_dist = [ | ||
| _js_dist.extend([{ | ||
| 'relative_package_path': 'async~{}.js.map'.format(async_resource), | ||
| 'external_url': ( | ||
| 'https://unpkg.com/dash-bio@{}' | ||
| '/dash_bio/async~{}.js.map' | ||
| ).format(__version__, async_resource), | ||
| 'namespace': 'dash_bio', | ||
| 'dynamic': True | ||
| } for async_resource in async_resources]) | ||
| _js_dist.extend([ | ||
| { | ||
| 'relative_package_path': 'bundle.js', | ||
| 'external_url': ( | ||
| 'https://unpkg.com/dash-bio' | ||
| 'https://unpkg.com/dash-bio{}' | ||
| '/' + package_name + '/bundle.js' | ||
| ).format(__version__), | ||
Collaborator There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hey not new in this PR, but ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔎 Interesting, due to how
| ||
| 'namespace': package_name | ||
| } | ||
| ] | ||
| ]) | ||
| _css_dist = [] | ||
Large diffs are not rendered by default.
Uh oh!
There was an error while loading. Please reload this page.
Large diffs are not rendered by default.
Uh oh!
There was an error while loading. Please reload this page.
Large diffs are not rendered by default.
Uh oh!
There was an error while loading. Please reload this page.
Large diffs are not rendered by default.
Uh oh!
There was an error while loading. Please reload this page.
Large diffs are not rendered by default.
Uh oh!
There was an error while loading. Please reload this page.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not for this PR, but at some point - like perhaps, whenever we get around to fully generating
__init__.py- this all seems ripe for abstracting into the dash core, likeMay still need some tweaking to handle edge cases like
async: 'eager'|'lazy', but we should at least be able to auto-detect sourcemaps (which may not exist in release versions plotly/dash#910) and set them alldynamic: Trueregardless of the resource setting.