Coder Social home page Coder Social logo

Comments (5)

purdrew avatar purdrew commented on June 12, 2024

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.

lbustelo avatar lbustelo commented on June 12, 2024

@jhpedemonte

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.

lbustelo avatar lbustelo commented on June 12, 2024

@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.

jhpedemonte avatar jhpedemonte commented on June 12, 2024

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.

jhpedemonte avatar jhpedemonte commented on June 12, 2024

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)

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.