Lecture 1 EDGE Python Data Science
Lecture 1 EDGE Python Data Science
Lecture 1
IPython
Understanding Python
Understanding IPython
Jupyter Notebook
Help and Documentation in IPython
Keyboard Shortcuts in the IPython Shell
Installing Ipython
pip install ipython
Dr. S M Rafizul Haque, CSE, KU
IPython
5 What is Shell?
The shell is a way to interact textually with computer
At the prompt, the user would type a command, and the computer would
do what the user told it to.
Jupyter Notebooks
A browser-based graphical interface to the IPython shell and builds on it a
rich set of dynamic display capabilities
A community standard for communicating and performing interactive
computing
As well as executing Python/ IPython statements, allows the user to include
formatted text, static and dynamic visualizations, images, mathematical
equations, JavaScript widgets, rich media representations of objects and
much more
Dr. S M Rafizul Haque, CSE, KU
Jupyter Notebook
6
Installing the classic Jupyter Notebook
pip install notebook
Installing JupyterLab
pip install jupyterlab
Cells are the individual units of the notebook, and they can contain
either text or code.
JupyterLab
A next-generation web-based user interface for Project Jupyter.
Enables to work with documents and activities such as Jupyter
notebooks, text editors, terminals, and custom components in a
flexible, integrated, and extensible manner.
Dr. S M Rafizul Haque, CSE, KU
IPython: Help and Documentation
8 Every Python object contains the reference to a string,
known as a docstring, which contains a concise summary
of the object and how to use it.
In [2]: len?
Type: builtin_function_or_method
String form: <built-in function len>
Namespace: Python builtin
Docstring:
len(object) -> integer