0% found this document useful (0 votes)
28 views25 pages

Lec1 1 5

The document provides an overview of Jupyter notebooks, highlighting their functionality as a combination of a word processor, shell, and rendering engine for executing and displaying code outputs. It discusses the benefits of using notebooks for reproducible research, tutorials, and documentation, as well as various ways to use them, including local and online servers. Additionally, it covers exporting options and resources for further assistance and learning.

Uploaded by

adarshkumarmuz01
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views25 pages

Lec1 1 5

The document provides an overview of Jupyter notebooks, highlighting their functionality as a combination of a word processor, shell, and rendering engine for executing and displaying code outputs. It discusses the benefits of using notebooks for reproducible research, tutorials, and documentation, as well as various ways to use them, including local and online servers. Additionally, it covers exporting options and resources for further assistance and learning.

Uploaded by

adarshkumarmuz01
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 25

APEX INSTITUTE OF TECHNOLOGY

COMPUTER SCIENCE &


ENGINEERING
Bachelor of Engineering (Computer Science)
Python For Machine Learning
21CSH-238
Kushagra Agrawal

Introduction to Python DISCOVER . LEARN . EMPOWER


What are notebooks?

A notebook combines the functionality of

a word processor — handles formatted text

a "shell" or "kernel" — executes statements in a programming language and includes output inline

a rendering engine — renders


HTML in addition to plain text

Example
notebook
using Python

global density
of metal bands

Example
notebook
using Dyalog APL

health care expenditure vs GDP per capita


Notebook benefits

A single document that combines explanations with executable code and its output — an ideal way to provide:

reproducible research results


documentation of processes
instructions
tutorials and training materials of all shapes
and sizes
A digital learning environment
for computational thinking
What is Jupyter notebook?

First notebook: Mathematica 1.0 in '88


Jupyter notebook is a part of
Project Jupyter, a nonprofit to ONE OF THE MOST
SIGNIFICANT ADVANCES
develop open-source software,
standards, and services for
interactive computing across
dozens of programming languages IN THE SCIENTIFIC
Pyt R
beginning with Julia, hon, , and now COMPUTING ARENA
over 70 languages, including Dyalog APL
UNIVERSITY CORPORATION
FOR ATMOSPHERIC
RESEARCH
Ways to use Jupyter notebooks

On your own computer after installing a Jupyter


notebook server
With an online notebook server like cocalc.com
Save notebook with output and use a notebook
viewer
Export to HTML, PDF, L T X, etc.
A
E
Local notebook server — Python

Anaconda interpreter
Python platform Python

notebook server
web browser localhost:8888
Jupyter kernel
for Python
Local notebook server — APL

Anaconda interpreter
Python platform Dyalog APL
col
notebook server oto
web browser localhost:8888 pr
I DE
R
Jupyter kernel
for Dyalog APL
github.com/Dyalog/dyalog-jupyter-kerne
Setting up local notebook server l/wiki

Install Dyalog 
Install Dyalog's Jupyter kernel
Install Anaconda
Launch Jupyter notebook server
installation instructions
github.com/Dyalog/dyalog-jupyter-kerne
l/wiki

Demo
Installing Jupyter
Opening a notebook
Modifying content
Online notebook servers

There are
online
services
for various
programmin
g
languages
Online notebook servers

TryAPL's
lessons
are now
Jupyter
More lessons and
notebooks
features on the way

→ TryAPL
presentation
at Dyalog '18 in
Belfast
Online notebook servers

Benefit: nothing to install

you may need to sign up for an account


To protect servers, host may place restrictions

or run in a sandbox with limited connectivity


Notebooks can execute any code

all code is run on the host server


same privileges as local execution
Static notebook viewers

Notebooks are stored as .ipynb files

.ipynb files are in JSON format


each code cell may include output from the last execution
You can share an .ipynb file

anyone with a local notebook server can view it


… but of course cannot execute anything new
Many online systems have viewers

GitHub's file previewer


Project Jupyter's nbviewer.jupyter.org
Exported notebooks

Notebooks can be exported to many standard


for example HTML, PDF, and LATEX
Some formats require 3rd party plug-ins
Exported notebooks are static
expressions cannot be re-executed
Demo
Creating a new notebook
document
Generating rich output
Ways to use notebooks — recap

Installing a Jupyter notebook server on your PC

Use an online notebook server like cocalc.com

Store the notebook with output, then open in a notebook viewer

Export to HTML, PDF, LAT


EX, …
Ask questions now!

Wiki github.com/Dyalog/dyalog-jupyter-kernel/wiki
Email [email protected]
Ask questions now!

Wiki github.com/Dyalog/dyalog-jupyter-kernel/wiki
Email [email protected]

Thank you
Technology Partnership (tp.rs)
for the prototype APL kernel
Ask questions now!

Wiki github.com/Dyalog/dyalog-jupyter-kernel/wiki
Email [email protected]
Interested in an
internship?
Thank you
Email
Will Robertson (our summer intern)
[email protected]
for working on the kernel
and creating many notebooks
Ask questions now!

Wiki github.com/Dyalog/dyalog-jupyter-kernel/wiki
Email [email protected]

Thank you
Gil Athoraya (of Optima Systems)
for implementing syntax colouring
Ask questions now!

Wiki github.com/Dyalog/dyalog-jupyter-kernel/wiki
Email [email protected]

Thank you
for watching
Webinars on Thursdays at 16:00 UTC

Comment and suggest to [email protected]


or
@Adám in
chat.stackexchange.com/rooms/52405
No webinar in October due to Dyalog '18 in Belfast October 28th–November 1st
many sessions will be livestreamed

General APL Questions


stackoverflow.com
THANK
YOU
For Queries,
Write at : [email protected]

You might also like