GNS3 Talks: Python for Network Engineers with GNS3 (Part 10) - Jupyter Python Clients (3.0 and 2.7)
David Bombal
Udemy: Get the course for $10 here: https://goo.gl/QYC988 GNS3 Academy: Get the course for $10 here: https://goo.gl/vnZJhg More free Python videos here: https://www.youtube.com/playlist?list=PLhfrWIlLOoKPn7T9FtvbOWX8GxgsFFNwn
Learn Python programming with GNS3. In this series of videos I will show you how you can quickly and easily program Cisco networks using Python.
Script on GitHub:
https://github.com/davidbombal/pythonvideos/blob/master/pythonR1script1.py
Python Video 1: https://youtu.be/IhroIrV9_7w
Transcription:
GNS3 now supports Jupyter. In this video, I'm going to show you how to import the GNS3 appliances from the GNS3 marketplace for both Python 3 as well as Python 2.7.
This is one of multiple videos teaching you network programmability using Python and GNS3. Jupyter makes it very easy for you to develop code and share code and not only supports Python but also supports other languages such as R and Scala.
It allows you to share notebooks with others and is currently used by many companies and universities around the world. So to get started, go to the GNS3 website, click on Marketplace, Appliances and search for Jupyter. The Jupyter appliance supports Python 3.0, whereas the Jupyter 2.7 appliance supports Python 2.7. I've downloaded both to my local hard drive.
I'm going to integrate both with GNS3 and I'll demonstrate using the Jupyter to configure a Cisco IOS V router using Python.
Please note that in this video, I'm using GNS3 2.0 release candidates 3. I'm also using the GNS3 VM as recommended by GNS3.
So if these appliances don't work in your release of GNS3, you may need to upgrade to GNS3 2.0 release candidate 3. To import the appliances, go to file, Import Appliance and select Jupyter, click Open, a brief overview of the appliance as shown. We’re told that the Jupyter notebook is an open source web application that allows you to create and share documents that contain live code, equations, visualizations and text.
Basically we're going to use the Jupyter appliance for running Python code. I'm going to click Next. It's recommended that the appliance run on the GNS3 VM and that's what I'm going to do. So I'm going to click Next. This appliance uses HTTP the port number used by Jupyter is 8888 but GNS3 will select a port number for this connection. I'm going to click Next. We're told that the appliance will be available in the guest category. I'm going to click finish and we're told that the Jupyter appliance is installed.
I'm now going to import the 2.7 appliance. The process is very similar so click Next run it on the GNS3 VM, click Next. It also uses HTTP. Console port is shown here, click Next. We’re told that it's also going to be available in the guest category, click Finish. So both of those appliances a ... https://www.youtube.com/watch?v=czYa2MZwrdk
62083581 Bytes