Comments (15)
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.
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.
Test again. Various things have changed in dashboards (no more bower install) that might impact behavior.
from dashboards.
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:
Related to @Lull3rSkat3r's deploy changes?
from dashboards.
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.
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.
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.
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.
Back burnering until widget defect is resolved.
from dashboards.
This probably warrants retesting both with:
- Local deploy
- 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.
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.
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.
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.
Unless you plan to do more research, I think we can close this.
from dashboards.
Closing after manual test.
from dashboards.
Related Issues (20)
- python does not have .order! HOT 2
- Getting error while installing Jupyter Dashboard HOT 4
- install dashboard as local user HOT 3
- Jupyter Dashboard - Plotly Charts overlapping issue HOT 5
- Clarification of "Developer tasks" HOT 3
- Demo Notebook "Scotch Dashboard" runtime error HOT 2
- Found an error in taxi_dashboard HOT 4
- How can Python code detect whether it's running in a dashboards or notebook environment?
- Is this project maintained? HOT 1
- ImportError: No module named jupyter_dashboards during installation HOT 5
- Dashboard view not showing up HOT 8
- Temporary notebook server for demos linked from wiki page is no longer active and now redirects to a site serving {ad,scam,mal}ware HOT 1
- Issue when running npm install -g jupyter-dashboards-server HOT 1
- Why move to attic?
- Dashboard view is not displayed in jupyter notebook HOT 1
- Resizing markdown cell in dashboard
- Broken in notebook>=5.6 HOT 3
- Scroll down in the dashboard mode
- Jupyter Dashboard Grid exception HOT 1
- Can't move cells in GridMode HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dashboards.