Python CLI and Jupyter Notebook

Python is supported by multiple interfaces to explore as well as to develop applications.

  • Python CLI - to explore the libraries and functions.

  • IPython - CLI with better interactive capabilities

  • Jupyter Notebook - A wrapper on top of IPython which provides you the capabilities of exploring Python via browser.

  • Jupyter Lab - A wrapper on top of Jupyter Notebook which enhances user experience.

  • IDEs - Primarily used for Application Development

We can leverage Jupyter Notebook or Jupyter Lab to learn Python and should use IDEs such as Pycharm for application development.

Tasks - Python CLI

Here are some of the tasks to be comfortable with Python CLI.

  • Launch Python CLI

  • Print Hello World - print('Hello World')

  • Perform basic arithmetic operations - 1 + 2

  • Print Python Version

from platform import python_version
print(python_version())

We will look into Jupyter Notebook and Jupyter Lab as part of next topic