Using Jupyter Notebook to learn programming interactively
I have recently setup Jupyter Notebook to work with Python3. Following are some use cases of the notebook in action.
Python
When trying out the networkx and pydotplus library, a Jupyter notebook running the ipython kernel is really handy to inspect the graphs visually. The "%%svg" magic command will render the cell as an svg literal!
Once can also use the code snippet below to embed an image
...
svgFile = path.Path('/home/sgoda/Desktop/nx_dg_3.svg')
from IPython.display import Image, HTML
HTML(svgFile)
As you can see from the image below, Jupyter notebooks also have interactive widgets (http://ipywidgets.readthedocs.io)! They came real handy recently when I was learning the rxpy library.
Javascript
References
Written by satishgoda
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Python
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#