Giter Club home page Giter Club logo

Comments (8)

michiboo avatar michiboo commented on August 23, 2024 1

Hi! I am Micky, looking for apply for GSOC for this project!
I was looking into this problem and found a useful information about this issue on ipywidgets documentation

"""A text representation of the widget is printed if the widget control is not available. It may mean the widget JavaScript is still loading. If the message persists in the Jupyter Notebook or JupyterLab, it likely means that the widgets JavaScript library is either not installed or not enabled. See the installation instructions above for setup instructions.

If you see this message in another frontend (for example, a static rendering on GitHub or NBViewer), it may mean that your frontend doesnโ€™t currently support widgets."""

So there is nothing we can do on static notebook.

from astrowidgets.

pllim avatar pllim commented on August 23, 2024

p.s. Maybe this is more of a ipywidgets issue, as I see that the button widgets also do not render in a WYSIWYG way.

from astrowidgets.

pllim avatar pllim commented on August 23, 2024

Yes, that was what I suspected (and afraid of). Thanks!

from astrowidgets.

pllim avatar pllim commented on August 23, 2024

cc @eteq , how sure how much this would be a blocker for rendering notebooks over at notebooks.

from astrowidgets.

pllim avatar pllim commented on August 23, 2024

Re: applying to GSoC -- Please see https://github.com/astropy/astropy/wiki/GSoC-Guidelines , @michiboo

from astrowidgets.

eteq avatar eteq commented on August 23, 2024

Wait, I'm not sure you can interpret it quite that way, @pllim and @michiboo : when it says "for example, a static rendering on GitHub or NBViewer", that doesn't mean all static views don't support it... In principle as long as you can embed the javascript for the widget in the static view it could still work.

That said, a better/more stable approach is probably to build machinery that turns an ImageWidget into a regular Image upon saving or converting to the static view... I'm not sure how to do this exactly, but it should be possible. Perhaps that needs a separate issue though?

from astrowidgets.

pllim avatar pllim commented on August 23, 2024

Should I re-open this issue then? Or should this be upstream somewhere in ipywidgets?

from astrowidgets.

michiboo avatar michiboo commented on August 23, 2024

@pllim Thanks for the information!

@eteq Would it be better if we export the notebook to html using nbconvert? It will preserve the widget.

from astrowidgets.

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.