Coder Social home page Coder Social logo

Comments (15)

nitind avatar nitind commented on June 9, 2024 1

When the notebook server, kernel gateway, and dashboard server are running correctly, aside from a logged "Uncaught TypeError: Cannot read property 'register' of null", the dashboard works properly both deployed locally on the notebook server and on the dashboard server.

from dashboards.

lbustelo avatar lbustelo commented on June 9, 2024

We still need to take a look at jupyter/declarativewidgets#22 . It is strange that the relative urth_components path does not work.

from dashboards.

parente avatar parente commented on June 9, 2024

Test again. Various things have changed in dashboards (no more bower install) that might impact behavior.

from dashboards.

jhpedemonte avatar jhpedemonte commented on June 9, 2024

On current master, we moved the imports of the Polymer elements (iron-resizable-behavior, iron-list, paper-toggle-button and paper-material) to the top of dynamic-list.html and upcoming-meetups.html.

By itself, that didn't work, since we ran into problem 2 from jupyter/declarativewidgets#22. So we added a forward slash before urth_components, as seen in description above.

This works fine when running in Notebook, but breaks when running a deployed dashboard. But we get different errors than before:

screen shot 2015-11-03 at 2 09 28 pm

Related to @Lull3rSkat3r's deploy changes?

from dashboards.

Lull3rSkat3r avatar Lull3rSkat3r commented on June 9, 2024

This looks like Polymer is being loaded twice because of the multiple dom-module registrations. I think it is most likely a path issue with how polymer is being loaded.

from dashboards.

parente avatar parente commented on June 9, 2024

Try testing that locally deployed dashboard outside of Jupyter as a webserver. You can try this quickly on your Mac by:

cd dashboards/etc/notebooks/local_dashboards/whatever_the_path_is
python -m SimpleHTTPServer

and then hit http://localhost:8000/. The dashboard should load. I'd like to see if you get the same errors or different ones.

from dashboards.

jhpedemonte avatar jhpedemonte commented on June 9, 2024

Updated to latest widgets and moved imports into dynamic-list.html and upcoming-meetups.html. But as advised by @deedubbu, I did not add a leading slash.

I no longer see the long list of errors, but the Upcoming Meetups list doesn't load correctly (when running in the notebook or deployed). It seems that it (eventually) gets the iron-list, but it does not load correctly with data. Talking to @deedubbu, this seems to be a timing issue (jupyter/declarativewidgets#25).

I tested the deployed dashboard using a non-Jupyter webserver and it works exactly as it does from Jupyter itself (and notebook) -- meaning, Upcoming Meetups list doesn't load, but candidates list does show when streaming.

from dashboards.

parente avatar parente commented on June 9, 2024

For the record, the demo is working around this problem by elevating the dependency links to the notebook from of in the widget HTML files.

from dashboards.

parente avatar parente commented on June 9, 2024

Back burnering until widget defect is resolved.

from dashboards.

parente avatar parente commented on June 9, 2024

This probably warrants retesting both with:

  1. Local deploy
  2. Dashboard server

A short writeup on what works and what doesn't still is the first step. Might be a decl widgets issue still or might be a bundlers / dash server issue.

from dashboards.

nitind avatar nitind commented on June 9, 2024

Executing in the notebook, polymer.html itself raises status 404 errors for /urth_components/iron-list/iron-list.html, urth_components/paper-toggle-button/paper-toggle-button.html, and /urth_components/paper-material/paper-material.html.

Locally deployed, meetup-outreach is initially disabled by https://github.com/jupyter-incubator/dashboards_bundlers/blob/master/dashboards_bundlers/local_deploy/__init__.py#L175 . With 0.5.2., declarativewidgets is present instead of urth_widgets (jupyter/declarativewidgets@4e5ff1b), but there are still problems getting the dashboard to display after updating that.

from dashboards.

nitind avatar nitind commented on June 9, 2024

When deployed locally, it's still 404s for /files/local_dashboards/meetup-outreach/static/urth_components/iron-list/iron-list.html as well as urth_components paper-toggle-button/paper-toggle-button.html and paper-material/paper-material.html.

from dashboards.

parente avatar parente commented on June 9, 2024

Locally deployed, meetup-outreach is initially disabled by https://github.com/jupyter-incubator/dashboards_bundlers/blob/master/dashboards_bundlers/local_deploy/__init__.py#L175 .

Hm. Shouldn't be. Either the old version with the old path should work or the new one. Else we've got a backward compat bug that we shouldn't have.

With 0.5.2., declarativewidgets is present instead of urth_widgets (jupyter/declarativewidgets@4e5ff1b), but there are still problems getting the dashboard to display after updating that.

I believe the README for decl widgets 0.5.2 says it will only work with ipywidgets 5.1.x and up. Our dev containers are still using ipywidgets 4.x and I think the README in bundlers says thebe only works with 4.x anyway.

from dashboards.

parente avatar parente commented on June 9, 2024

Unless you plan to do more research, I think we can close this.

from dashboards.

nitind avatar nitind commented on June 9, 2024

Closing after manual test.

from dashboards.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.