1

Please help me.

I am following this Lynda tutorial - Python Statistics Essential Training - Chapter 3, The power of visualization.

and the slider isn't showing up in Jupyter, it's not interactive as it's supposed to be. I run the "end" file, and it also has that issue. I have ipywidgets installed and json. image of the end result

interact(plotyear,year=widgets.IntSlider(min=1950,max=2015,step=1,value=1965))

Thank you for reading my question. Looking forward to finding a solution.

2 Answers 2

2

Bit difficult to diagnose this one given that we can't see the code.

Firstly, what version of ipywidgets do you have? run help(widgets) once you have imported ipywidgets.

Also, can you try running this and see what happens? Can you see a slider and a number that outputs when you change it?

import ipywidgets as widgets

def return_x(x):
    return x

widgets.interact(return_x, x=widgets.IntSlider(min=0, max=10, value=1))
Sign up to request clarification or add additional context in comments.

Comments

0

I found the answer:

first: jupyter nbextension enable --py widgetsnbextension second: jupyter labextension install @jupyter-widgets/jupyterlab-manager

After this installation, the test code from ac24 works.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.