Comments (5)
For issue 2 in your comment, I would think if the path is of the form urth_components/paper-toggle-button/paper-toggle-button.html
it would work.
from declarativewidgets.
Issue 1
The style below works does work. There is somethign in Jupyter that detects that you are asking for the file and it redirects. I've used it to load css and to actually load a simple Polymer element.
<link rel="import" href="./my-element.html">
Issue 2
There does appear to be a problem with loading the dependencies from within the element.
When I try to use
<link rel="import" href="urth_components/polymer/polymer.html">
The browser was going to directory_where_my_element_is_defined/urth_components/polymer/polymer.html
.
Now, if you use absolute path... it all works
<link rel="import" href="/urth_components/polymer/polymer.html">
from declarativewidgets.
@deedubuu can you take a look why the relative path does not work? I think we may be out of luck because another Jupyter built-in handler is taking over.
from declarativewidgets.
We were able to implement your suggestion for "issue 1" in PR jupyter/dashboards#79.
Your suggestions for "issue 2" (using absolute path) worked in the Notebook, but not with deployed dashboards (jupyter/dashboards#78).
from declarativewidgets.
Tested again yesterday. Importing sibling file (issue 1) works. Importing dependencies from within sibling file (issue 2) seems to work correctly, without a forward slash.
However, the Meetup Outreach demo's Upcoming Meetups list doesn't load correctly in this scenario. There does seem to be an iron-list
element in the list's shadow DOM, but it is not properly initialized. Talking to @deedubbu yesterday, this seems to be the timing issue (issue #25).
Since this seems to be working, I'm closing.
from declarativewidgets.
Related Issues (20)
- declarativewidgets not working HOT 5
- Documentation not found HOT 1
- Need to modify scala build to install toree from apache's dist server and not pypi HOT 3
- R declarative widgets donβt actually depend on SparkR HOT 4
- Move to https://github.com/jupyter-widgets? HOT 7
- Error enabling on OSX with matplotlib 2.0 installed
- Associated repo website is 404 HOT 2
- Changing DataFrame Limit HOT 3
- widgets failing to load after notebook closed and reopened HOT 1
- dom-bind-behavior bug against Polymer 1.9
- urth-import fails with POLYMER package ECONFLICT
- urth-viz-table, selectionIndex property doesn't work
- Install declarativewidgets without "pip install"
- Link to latest docs is broken HOT 2
- Edit license and rename file to LICENSE
- Date Picker
- Broken links
- Is declarative widgets maintained? HOT 13
- Some extension like Explorer visualization HOT 1
- Why was it retired? Are there any follow-up projects like this? HOT 1
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 declarativewidgets.