Skip to content
This repository was archived by the owner on Apr 27, 2026. It is now read-only.
This repository was archived by the owner on Apr 27, 2026. It is now read-only.

Interactive widgets in Jupyter Notebooks #35

Open

Description

@hakonrossebo

It would be nice to have some interactivity in notebooks, like taking text input from the user or sliders and checkboxes. Python has this feature with ipywidgets - https://ipywidgets.readthedocs.io/en/latest/examples/Widget%20List.html

IFSharp also seems to have some basic checkbox controls here https://github.com/IvanAntipov/IfSharp.Widgets

For basic text input, the ReadLine() functionality mentioned in dotnet/try#156 would be nice to have.

Are there any attempts to provide this functionality? If not, is there any guidance on how we can create something similar to ipywidgets? I can find some basic examples on how to add javascript and custom html here https://medium.com/@jdchipox/how-to-interact-with-jupyter-33a98686f24e - can that approach work with this kernel?

Here is an article on using widgets in Python notebooks https://medium.com/@jdchipox/how-to-interact-with-jupyter-33a98686f24e

Activity

  1. jonsequitur commented on Nov 27, 2019

    @jonsequitur
    Contributor

    We are planning on adding support for widgets.

  2. transferred this issue fromdotnet/tryon Jan 24, 2020
  3. added
    enhancement
    on Jan 24, 2020
  4. manutiedra commented on Feb 16, 2020

    @manutiedra

    +1. Something like ipywidgets or even better, mathematica is a must in my opinion.

  5. dsyme commented on Jul 14, 2020

    @dsyme
    Contributor

    Hi @jonsequitur , I've forgotten, what's the status on widget support? Anywhere to look or help?

    I remember we discussed some aspects in a 1:1 but I can't track down my notes on this.

    Thanks!

  6. haraldsteinlechner commented on Oct 28, 2020

    @haraldsteinlechner

    hi. just to check - is there any progress, documentation or pointers on this one? actually we are planning to integrate interactive with 3D visualizations - i think the same mechanisms would be needed here.
    :)

  7. GeorgeS2019 commented on Sep 13, 2021

    @GeorgeS2019

    FYI: check if this discussion relevant for 3D scientific visualization for dotnet Interactive.

  8. soulemike commented on Jun 1, 2023

    @soulemike

    With the additional functionality in #!connect recently added(Ref: #2791), I just gave a widget a whirl (specifically https://github.com/microsoft/powerbi-jupyter). As expected, widgets aren't solved with the update. Still the additional of cross kernel connect is a great addition.

  9. GeorgeS2019 commented on Jun 3, 2023

    @GeorgeS2019

    @Snozzberries
    Is it possible for your to share e.g. gif screen video of what you mean with your polyglot notebook?

    Additional reference

  10. soulemike commented on Jun 5, 2023

    @soulemike

    Prereqs:

    #Enable Extensions
    pip install powerbiclient
    jupyter labextension install @jupyter-widgets/jupyterlab-manager
    #Refresh browser
    

    Here is a quick overview. The cells that I preloaded were just the device code authN flows and cleared those cells before recording.

    crash

  11. funkrider commented on Jun 10, 2023

    @funkrider

    Some stand-alone notebooks have been created by @powelstadnicki uses a custom handler for messages from Javascript back to the kernel

  12. shiftybit commented on Jan 20, 2024

    @shiftybit

    Some stand-alone notebooks have been created by @powelstadnicki uses a custom handler for messages from Javascript back to the kernel

    @funkrider I looked for this guy on github, google, and twitter, and haven't been able to find anything from him. Do you have a link. I would love to see this in action

  13. funkrider commented on Jan 20, 2024

    @funkrider
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions