You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Sample3importnumpyasnpfrombqplotimportpyplotasplt# And creating some random datasize=100np.random.seed(0)
x_data=np.arange(size)
y_data=np.cumsum(np.random.randn(size) *100.0)
plt.figure(title='My First Plot')
plt.plot(x_data, y_data)
plt.show()
You should be asked to allow usage of a CND for widgets.
Pick yes
Test again without the CDN option
You might want to change this by going into your settings.json and update as follows (empty array setting):
"jupyter.widgetScriptSources": [],
Verify you get some sort of output in the cell from running the widget.
Note: Please test with and without CDN. When testing without CDN you could either wait for the prompt to use CDN or go into the settings.json file and add the setting "jupyter.widgetScriptSources": [ ], and re-run the above tests.
The text was updated successfully, but these errors were encountered:
This all works correctly for me. One note is I did have to run jupyter notebook --no-browser --NotebookApp.allow_origin='*' with the asterisk in quotes since the other way didn't work. Found my solution through this previous TPI. It might be worth including in future TPIs for that command since two people ran into it but I don't know if there is a setup issue with me that made me run into it. I am using a mac and did it in an integrated terminal with vscode.
Testing the jupyter extension loading ipywidgets
Refs: #8552
Complexity: 4
Authors: @DonJayamanne
Create Issue
Test with IPyWidgets 7.7.2 and 8
For the first test, install
ipywidgets==7.7.2
using the CLIpython -m pip install ipywidgets==7.7.2
For the first test, install
ipywidgets
using the CLIpython -m pip install ipywidgets
Requirements
python --version
to check the version)python -m pip install ipywidgets==7.7.2
python -m pip install ipywidgets
Pre test steps (vscode.web)
jupyter notebook --no-browser --NotebookApp.allow_origin=*
Test standard widgets
Pre test steps
Test more complex widgets
Sample code (click to expand)
You might want to change this by going into your settings.json and update as follows (empty array setting):
Note: Please test with and without CDN. When testing without CDN you could either wait for the prompt to use CDN or go into the settings.json file and add the setting
"jupyter.widgetScriptSources": [ ],
and re-run the above tests.The text was updated successfully, but these errors were encountered: