Intro_to_Jupyter_Notebooks
Intro_to_Jupyter_Notebooks
by Bryan Cafferky
SQL Saturday in Smithfield, RI
December 9th
http://www.sqlsaturday.com/694/EventHome.aspx
Use Discount
Pre Con: R from A to Z Code
https://r_programming.eventbrite.com Microsoft
For 20% Off
About Bryan Cafferky…
• Microsoft Technical Solutions Enabler
• Decades of IT Experience
• Founded and lead PASS Chapter The RI Microsoft BI User Group and The SNE R User Group
• Proud to be a Nerd.
www.sql-fy.com
https://www.linkedin.com/in/bryancafferky
Teaching Collaboration
Research Exploration
Why Use Notebooks?
It’s not
just for
Python
Anymore!
Who uses Jupyter Notebooks?
What’s in a name?
Emphasizes
Jupyter
multi-language
support.
R
Julia
Python
Why Notebook?
From Galileo’s
Notebook –
Drawing’s of
Jupiter’s
satellites.
Kernel Architecture
JSON format
http://jupyter.readthedocs.io/en/latest/architecture/how_jupyter_ipython_work.html
Flexible Notebook Conversions
nbconvert
Formats include:
• HTML Slides
• PDF
• Markdown
• Script
http://jupyter.readthedocs.io/en/latest/architecture/how_jupyter_ipython_work.html
What is Jupyter Notebook?
Execute the cell
Command Prompt
called a cell
Note: The notebook starts pointing to the folder from where the notebook was started.
The Jupyter Server Running
A First Look at a Notebook
Kernel Running
Exploring
Jupyter…
http://jupyter.org/
• Documentation
%R to run R Default
code in the language is
cell Python 3
R ggplot call
passing data
frame, df, from
Python
Import
pyspark
module
Set the
Resilient Spark
Distributed context
Dataset
Point
context to
HDFS file
Reads the
data in
Spark
Sample the
data
Presentations from Jupyter…
Switch to Organize
Slideshow Slides
Mode
Github Renders Notebooks Automatically…
Advanced Data Science Tool
Architecture
Features
Maximize Notebook Value
https://notebooks.azure.com/
To Install R
Packages
install.packages("psych", repo="http://cran.us.r-project.org")
Jupyter Notebooks on Azure
Expand/
Collapse
Control
Jupyter Notebooks on Azure
• Built-In Support to
maintain
notebooks.
• Initially supports R,
Python 2 and
Python 3.
Jupyter Notebooks on Azure
Use the Gallery to Get a
Jump Start
Why Azure Notebooks?
Provides Custom Development IDE within the Azure Portal
Secure
Expand/
Collapse
Control
Output
rendered in
the editor
Installing Additional R Packages
Install Pop Up in RStudio
• Installing additional R Packages
• Copy the package folder from the R folder to the Anaconda folder.
How to get Jupyter Notebook…
Installing Jupyter Notebook
• Install Python – Jupyter is a Python application.
https://cran.r-project.org/bin/windows/base/
Installing Jupyter Notebook
Open Source