About the Tutorial

i

About the Tutorial

Project Jupyter is a comprehensive software suite for interactive computing, that includes

various packages such as Jupyter Notebook, QtConsole, nbviewer, JupyterLab.

This tutorial gives you an exhaustive knowledge on Project Jupyter. By the end of this

tutorial, you will be able to apply its concepts into your software coding.

Audience

Jupyter notebook is a defacto standard interactive environment for data scientists today.

This tutorial is useful for everyone who wants to learn and practice data science libraries

of Python/R etc.

Prerequisites

This is not a tutorial to teach Python programming. It describes use of powerful interactive

environment to use Python. We assume you have a good understanding of the Python

programming language.

If you are beginner to Python and other related concepts, we suggest you to pick tutorials

based on these, before you start your journey with Jupyter.

Copyright & Disclaimer

? Copyright 2018 by Tutorials Point (I) Pvt. Ltd.

All the content and graphics published in this e-book are the property of Tutorials Point (I)

Pvt. Ltd. The user of this e-book is prohibited to reuse, retain, copy, distribute or republish

any contents or a part of contents of this e-book in any manner without written consent

of the publisher.

We strive to update the contents of our website and tutorials as timely and as precisely as

possible, however, the contents may contain inaccuracies or errors. Tutorials Point (I) Pvt.

Ltd. provides no guarantee regarding the accuracy, timeliness or completeness of our

website or its contents including this tutorial. If you discover any errors on our website or

in this tutorial, please notify us at contact@

i

Jupyter

Table of Contents

About the Tutorial ................................................................................................................................ i

Audience............................................................................................................................................... i

Prerequisites ......................................................................................................................................... i

Copyright & Disclaimer ......................................................................................................................... i

Table of Contents................................................................................................................................. ii

IPYTHON ..................................................................................................................................... 1

1. IPYTHON ¨C INTRODUCTION .................................................................................................. 2

Features of IPython ............................................................................................................................. 2

History and Development .................................................................................................................... 3

2. IPYTHON ¨C INSTALLATION .................................................................................................... 4

3. IPYTHON ¨C GETTING STARTED .............................................................................................. 5

Starting IPython from Command Prompt. ............................................................................................ 5

Start IPython from conda prompt ........................................................................................................ 6

Magic Functions ................................................................................................................................... 7

4. IPYTHON ¡ª RUNNING AND EDITING PYTHON SCRIPT .......................................................... 8

Run Command ..................................................................................................................................... 8

Edit Command ..................................................................................................................................... 8

5. IPYTHON ¡ª HISTORY COMMAND ........................................................................................ 9

6. IPYTHON ¡ª SYSTEM COMMANDS ...................................................................................... 10

7. IPYTHON ¡ª COMMAND LINE OPTIONS .............................................................................. 12

Invoking IPython Program ................................................................................................................. 12

Subcommands and Parameters ......................................................................................................... 12

8. IPYTHON ¡ª DYNAMIC OBJECT INTROSPECTION................................................................. 14

ii

Jupyter

9. IPYTHON ¡ª IO CACHING .................................................................................................... 15

10.

IPYTHON ¡ª SETTING IPYTHON AS DEFAULT PYTHON ENVIRONMENT ............................ 18

11.

IPYTHON ¡ª IMPORTING PYTHON SHELL CODE ............................................................... 19

12.

IPYTHON ¡ª EMBEDDING IPYTHON ................................................................................. 21

13.

IPYTHON ¡ª MAGIC COMMANDS .................................................................................... 23

Types of Magic Commands ................................................................................................................ 23

IPython Custom Line Magic function.................................................................................................. 30

JUPYTER .................................................................................................................................... 31

14.

PROJECT JUPYTER ¡ª OVERVIEW ..................................................................................... 32

15.

JUPYTER NOTEBOOK ¡ª INTRODUCTION ......................................................................... 33

16.

JUPYTER NOTEBOOK ¡ª WORKING WITH JUPYTER ONLINE ............................................. 34

17.

JUPYTER NOTEBOOK ¡ª INSTALLATION AND GETTING STARTED ..................................... 35

18.

JUPYTER NOTEBOOK ¡ª DASHBOARD.............................................................................. 37

19.

JUPYTER NOTEBOOK ¡ª USER INTERFACE ....................................................................... 39

20.

JUPYTER NOTEBOOK ¡ª TYPES OF CELLS ......................................................................... 42

21.

JUPYTER NOTEBOOK ¡ª EDITING..................................................................................... 43

22.

JUPYTER NOTEBOOK ¡ª MARKDOWN CELLS ................................................................... 45

23.

JUPYTER NOTEBOOK ¡ª CELL MAGIC FUNCTIONS ........................................................... 49

24.

JUPYTER NOTEBOOK ¡ª PLOTTING .................................................................................. 51

25.

JUPYTER NOTEBOOK ¡ª CONVERTING NOTEBOOKS ........................................................ 53

26.

JUPYTER NOTEBOOK ¡ª IPYWIDGETS .............................................................................. 54

iii

Jupyter

QTCONSOLE .............................................................................................................................. 56

27.

JUPYTER QTCONSOLE ¡ª GETTING STARTED ................................................................... 57

Overview ........................................................................................................................................... 57

Installation......................................................................................................................................... 57

28.

JUPYTER QTCONSOLE ¡ª MULTILINE EDITING ................................................................. 59

29.

JUPYTER QTCONSOLE ¡ª INLINE GRAPHICS ..................................................................... 60

30.

JUPYTER QTCONSOLE ¡ª SAVE TO HTML......................................................................... 61

31.

JUPYTER QTCONSOLE ¡ª MULTIPLE CONSOLES............................................................... 62

32.

JUPYTER QTCONSOLE ¡ª CONNECTING TO JUPYTER NOTEBOOK .................................... 63

33.

SHARING JUPYTER NOTEBOOK ¡ª USING GITHUB AND NBVIEWER ................................. 64

JUPYTERLAB .............................................................................................................................. 67

34.

JUPYTERLAB¡ª OVERVIEW .............................................................................................. 68

35.

JUPYTERLAB¡ª INSTALLATION AND GETTING STARTED ................................................... 69

36.

JUPYTERLAB¡ª INTERFACE .............................................................................................. 71

37.

JUPYTERLAB¡ª INSTALLING R KERNEL ............................................................................. 74

iv

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download