Coder Social home page Coder Social logo

Comments (10)

peller avatar peller commented on June 12, 2024

looking at this now

from declarativewidgets.

lbustelo avatar lbustelo commented on June 12, 2024

I don't think that this is easily 100% fixable. We could add the force flag on the link tag to get the package to install.

The problem is that we won't be able to register the element at all because the browser already has it registered. It seems that only a page refresh would do.

from declarativewidgets.

jhpedemonte avatar jhpedemonte commented on June 12, 2024

Understand about the page refresh -- makes sense. But I think this is still an issue then. I can change a package reference to point to a different version, refresh the page, and it still won't install the new version (since it already exists in bower).

from declarativewidgets.

purdrew avatar purdrew commented on June 12, 2024

One risk here is that there is no way to guarantee that the version requested is there the next time you run the notebook. If another notebook forces the installation of a different version, your requested version would be lost since bower uses a flat directory structure (only one version of a package is kept).

from declarativewidgets.

jhpedemonte avatar jhpedemonte commented on June 12, 2024

One solution would be to have one bower_components dir per notebook. That way, each notebook would be fully in control of what is installed and what it uses. Only downside is that there would be a lot of duplication.

from declarativewidgets.

dalogsdon avatar dalogsdon commented on June 12, 2024

The bower install API allows the form <name>=<package>#<version>. This could be used to install different dependency versions under the covers so that different notebooks can use different versions. The <name> could be the package name with a version string.

For example, if the user wanted iron-list 1.0.1, widgets could do:

bower install iron-list-1.0.1=iron-list#1.0.1

This could work with the global bower_install.

from declarativewidgets.

lbustelo avatar lbustelo commented on June 12, 2024

@peller have abandoned this issue. If so, I would like to remove the in progress tag. This is not high priority and could hurt more than help.

from declarativewidgets.

peller avatar peller commented on June 12, 2024

+1

from declarativewidgets.

purdrew avatar purdrew commented on June 12, 2024

+1 to providing some means of forcing an install of an already installed bower package. I am currently developing a notebook where I am using some hacks/fixes to some of our components and some third party components. Every time I find something else I need to fix I need to go to the container (which I don't own) and have the packages removed so my updates can be downloaded.

from declarativewidgets.

lbustelo avatar lbustelo commented on June 12, 2024

Related to #145

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.