Merck / matcher

Matcher is a tool for understanding how chemical structure optimization problems have been solved. Matcher enables deep control over searching structure/activity relationships (SAR) derived from large datasets, and takes the form of an accessible web application with simple deployment. Matcher is built around the mmpdb platform.
MIT License
54 stars 10 forks source link

Dash components fail to load #2

Closed hooveran closed 1 year ago

hooveran commented 1 year ago

Recently, using code from commit eea5d98b84b27f96a5b65a374baf0a67ce44aa7a, the loading of Dash components through the Dash CDN, unpkg.com, was unreliable.

Steps to reproduce:

  1. Launch matcher following the instructions in the README quickstart, using the code from commit eea5d98b84b27f96a5b65a374baf0a67ce44aa7a

Expected behavior:

After loading localhost:8000 in Chrome: For a brief period, the plain text "Loading..." should be visible at the bottom of the interface, but then disappear and be replaced by a purple "Submit Query" button, signifying that the Dash app has completed loading.

Actual behavior

After loading localhost:8000 in Chrome: The plain text "Loading..." is visible at the bottom of the interface, but remains and does not disappear, and no purple button appears. The app stalls and several errors are visible when inspecting the javascript console.

hooveran commented 1 year ago

Fixed with commit 7f3b94ada65eb05d1b4d8027d0ff26f5987e135b

Changed a parameter to ensure that Dash loads all content from the frontend server, rather than an external CDN.