Learn Jupyter Notebooks (pt.4) Using Interactive Widgets




[ad_1]

In this video, we go through a simple example with Ipython widgets to interact with a Matplotlib plot.

Github link to notebook: https://github.com/markjay4k/fourier-transform
Ipython widgets docs: https://ipywidgets.readthedocs.io/en/latest/user_guide.html
facebook group: https://www.facebook.com/MarkJay4k/?ref=aymt_homepage_panel

Source


[ad_2]

Comment List

  • Mark Jay
    December 11, 2020

    Thank you)

  • Mark Jay
    December 11, 2020

    Too good tutorial… a very needful tutorial for ipwidgets without non-sense and clear cut example. I liked it much. Thanks.

  • Mark Jay
    December 11, 2020

    Please do more! Or a series on different mathematical techniques for computations on Jupyter

  • Mark Jay
    December 11, 2020

    How can i install IPython? I got the error IPython is not defined

  • Mark Jay
    December 11, 2020

    Please, can I use Python widgets online (online jupyter notebook) or do i have to do desktop installation?

  • Mark Jay
    December 11, 2020

    Awesome. I had great time learning Widgets.

  • Mark Jay
    December 11, 2020

    excellent explanation, straight to the point 🙂 thank you man

  • Mark Jay
    December 11, 2020

    Your tutorials are very good. Thanks! Just a sidenote: I could run all your code in these four videos series on jupyter notebook, but I keep getting errors on jupyter lab. Can you run them on jupyter lab?

  • Mark Jay
    December 11, 2020

    A small comment about the plotting. I followed this tutorial but in the part 13:12 of the plot, for some reason it hadn't worked.
    Why? I double check all my code and it was right. Also I noticed that in the first part of the sliders, when they are doing noting, everything seems to be right but in my case that bar with "figure 1" didn't appear.

    Fortunately I was very lucky and for some unknown reason I put a double space in the backend and for another unknown reason it worked, and everybody was happy. So if you plot is not working instead of

    %matplotlib nbags

    try

    %matplotlib nbagg

  • Mark Jay
    December 11, 2020

    Thanks

  • Mark Jay
    December 11, 2020

    Change the speed to 1.5x. Thank me later.
    Btw, great tutorial Mark!

  • Mark Jay
    December 11, 2020

    Thank you!

  • Mark Jay
    December 11, 2020

    Is this possible to make with bodeplot? Nyquist?

  • Mark Jay
    December 11, 2020

    Unfortunately the graph is not rendered. I used your code on GitHub.

  • Mark Jay
    December 11, 2020

    Great stuff. Thank you!

  • Mark Jay
    December 11, 2020

    Nice videos… I recommend checking your pronunciation of https://en.wikipedia.org/wiki/Phi (as in pie)

  • Mark Jay
    December 11, 2020

    I'm sorry.. i can't show graph , why mr?.. i use python3.. what have to python default mr?…
    Thanks you..

  • Mark Jay
    December 11, 2020

    Awesome tutorial! I was just wondering could we dynamically change the x input range using FloatRangeSlider widget so that we can control the x extent of the curve? Thank you!

  • Mark Jay
    December 11, 2020

    please keep your keyboard away from mic, thanks for the video

  • Mark Jay
    December 11, 2020

    I don't want the scale to change when amplitude is changed. Instead, the wave's amplitude should change and the scale should kept be fixed. Is that possible in this plot?.

  • Mark Jay
    December 11, 2020

    Great job. Clear explanations and right pacing. Thank you.

  • Mark Jay
    December 11, 2020

    Thanks for the videos

  • Mark Jay
    December 11, 2020

    Very good and useful tutorial, thank you very much.

  • Mark Jay
    December 11, 2020

    Thank you a lot. Good work and nice tutorial

  • Mark Jay
    December 11, 2020

    Thanks for the turorial!
    But widgets.interactive() did not work for me. The ax was not plottet. After changing it to widgets.interact() it looks like your plot and the ax is plotted an changing.
    Whats the difference between those functions?

  • Mark Jay
    December 11, 2020

    Solid tutorial with clear explanation

  • Mark Jay
    December 11, 2020

    Super awesome

  • Mark Jay
    December 11, 2020

    Please do the tutorial of the dashboard view. I wanna learn to do that.

  • Mark Jay
    December 11, 2020

    Nice~~~~~~~~!!! Big thanks!

  • Mark Jay
    December 11, 2020

    Maybe useful for anyone having issues with the plot disappearing: I had this problem and I have spent 2 days trying to find the reason for it. When the plot is refreshed for the first time (by changing any of the sliders by some amount), it disappears. In my case it was not the popular problem of ipywidgets being not enabled or similar things (https://github.com/jupyter-widgets/ipywidgets/issues/541 ), but simply that jupyter seemed to be an old version from the ubuntu repositories (running Kubuntu 17.04). Running in a terminal:
    sudo python -m pip install –upgrade jupyter
    or
    sudo python3 -m pip install –upgrade jupyter
    (depending on if you use python2 or python3) upgraded jupyter as well as 'widgetsnbextension' (!) and fixed the problem. Now the creators example from github runs smoothly and the plot does not disappear anymore.
    @Mark Jay:
    Great video! With this, I was able to quickly write down a script that interactively solves the problem of a particle in a Paul trap (https://en.wikipedia.org/wiki/Quadrupole_ion_trap ) for class- its amazing; thank you for this nice guide.

  • Mark Jay
    December 11, 2020

    nbagg doesn't work for me. Any idea why?

Write a comment