In [1]:
a=1
a


Package              Version   
-------------------- ----------
adal                 1.2.2     
altair               4.1.0     
appdirs              1.4.3     
appnope              0.1.0     
attrs                19.3.0    
azure-common         1.1.25    
azure-kusto-data     0.0.44    
azure-kusto-ingest   0.0.44    
azure-storage-blob   2.1.0     
azure-storage-common 2.1.0     
azure-storage-queue  2.1.0     
backcall             0.1.0     
beakerx              1.4.1     
black                19.10b0   
bleach               3.1.4     
bqplot               0.12.6    
branca               0.3.1     
certifi              2020.4.5.1
cffi                 1.14.0    
chardet              3.0.4     
click                7.1.2     
cryptography         2.9.2     
cycler               0.10.0    
debugpy              1.0.0b7   
decorator            4.4.2     
defusedxml           0.6.0     
entrypoints          0.3       
idna                 2.9       
ipydatawidgets       4.0.1     
ipykernel            5.2.1     
ipyleaflet           0.12.4    
ipython              7.13.0    
ipython-genutils     0.2.0     
ipyvolume            0.5.2     
ipywebrtc            0.5.0     
ipywidgets           7.5.1     
isodate              0.6.0     
jedi                 0.17.0    
Jinja2               2.11.2    
json5                0.9.5     
jsonschema           3.2.0     
jupyter-client       6.1.3     
jupyter-core         4.6.3     
jupyterlab           2.1.3     
jupyterlab-server    1.1.5     
K3D                  2.7.4     
kiwisolver           1.2.0     
MarkupSafe           1.1.1     
matplotlib           3.2.1     
mistune              0.8.4     
msrest               0.6.13    
msrestazure          0.6.3     
nbconvert            5.6.1     
nbformat             5.0.5     
nglview              2.7.5     
notebook             6.0.3     
numpy                1.18.2    
oauthlib             3.1.0     
pandas               1.0.3     
pandocfilters        1.4.2     
parso                0.7.0     
pathspec             0.8.0     
pexpect              4.8.0     
pickleshare          0.7.5     
Pillow               7.1.1     
pip                  19.2.3    
prometheus-client    0.7.1     
prompt-toolkit       3.0.5     
ptyprocess           0.6.0     
py4j                 0.10.9    
pycparser            2.20      
Pygments             2.6.1     
PyJWT                1.7.1     
pyparsing            2.4.7     
pyrsistent           0.16.0    
python-dateutil      2.8.1     
pythreejs            2.2.0     
pytz                 2019.3    
pyzmq                19.0.0    
qgrid                1.1.1     
regex                2020.4.4  
requests             2.23.0    
requests-oauthlib    1.3.0     
Send2Trash           1.5.0     
setuptools           41.2.0    
six                  1.14.0    
terminado            0.8.3     
testpath             0.4.4     
toml                 0.10.0    
toolz                0.10.0    
tornado              6.0.4     
traitlets            4.3.3     
traittypes           0.2.1     
typed-ast            1.4.1     
urllib3              1.25.9    
vega-datasets        0.8.0     
wcwidth              0.1.9     
webencodings         0.5.1     
widgetsnbextension   3.5.1     
xarray               0.15.1    
Note: you may need to restart the kernel to use updated packages.

In [1]:
with Error


  File "<ipython-input-1-8b7c24be1ec9>", line 1
    with Error
              ^
SyntaxError: invalid syntax

In [6]:
import matplotlib
import matplotlib.pyplot as plt
import numpy as np

t = np.arange(0.0, 2.0, 0.01)
s = 1 + np.sin(2 * np.pi  * t)

fig, ax = plt.subplots()
ax.plot(t, s)

ax.set(xlabel='time (s)', ylabel='voltage (mV)',
    title='About as simple as it gets, folks')

ax.grid()

fig.savefig('test.png')

plt.show()