Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Jupyter Notebooks!
You have completed Jupyter Notebooks!
Preview
Jupyter Notebook is easy to get up and running. In this video, you'll see how to install Jupyter Notebook, start the server, and create your first Notebook.
Resources
Some handy Jupyter shortcuts from O'Reilly.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
[MUSIC]
0:00
Hi I'm Kenneth.
0:04
Today I want to show you a great tool for
learning and experimenting with Python.
0:06
It also happens to be amazingly useful for
doing data science and
0:09
data visualization work in.
0:12
On top of that it can also be
used to work with code and
0:14
languages other than Python like Julia,
R, and more.
0:17
This project used to be
named IPython Notebook.
0:20
And you can still find a wealth
of materials out there if you
0:23
Google for that name.
0:25
Nowadays though, the project has been
renamed and slightly reimagined, and
0:26
is now known as Jupyter Notebook.
0:29
Jupyter Notebook is part of
Project Jupyter whose name stands for
0:31
JUlia, PYThon and R.
0:34
These notebooks are pretty awesome because
they can run your code written in Python,
0:36
Julia, R, and other languages.
0:39
They can also contain mark down,
images and more.
0:41
Don't worry if this sounds like
a lot of stuff to suddenly learn.
0:44
You can get a huge amount of value out of
Jupyter Notebooks just with a few minutes
0:46
exploration.
0:49
So to that end,
let's get it installed and running.
0:50
There are two main ways of
installing Jupyter Notebook.
0:53
If you're doing a lot of
data science related work,
0:56
you're probably going to want to use
Anaconda, right here, Anaconda and conda.
0:57
That way you'll get all of the assorted
goodies that come along with Anaconda.
1:02
I don't need all those though,
you may not so I'm going to go ahead and
1:06
install it just with Python itself.
1:09
So it's listed here as this
experienced Python users.
1:11
Really it's just anybody who doesn't need
1:14
all of the goodies that
come along with Anaconda.
1:16
So I will use pip3 because that what
the Python3 version of pip is listed
1:20
on this computer and
I will install Jupyter.
1:25
So it gonna take a moment to install but
once everything is installed
1:30
then I will be able to run
a command to launch the server.
1:34
It should take just take a moment.
1:37
All right, now that it's installed
I can launch the Jupyter server by
1:39
typing in Jupyter Notebook and
you'll see it opens up my browser.
1:45
If it doesn't open up
your browser right away,
1:50
you'll get a URL here in your
terminal that you can copy and
1:52
paste into your browser, and
it will open up your browser.
1:56
So now I've got the server open here, and
this kind of like the notebook dashboard.
1:59
This is where it lists
all the directories, and
2:06
the directory where you ran it, and
any files that are in there as well.
2:08
If you have your notebooks stored
in say your downloads directory,
2:12
you can go into that directory and
go open the notebook there.
2:16
I don't have any notebooks waiting though,
so I'm going to go ahead and
2:20
create a new one.
2:23
I'm going to click New here on the side
and I'm going to choose Python 3.
2:24
Now you may have Python 2 there,
2:27
you may have other languages depending
on what all you have set up in the past.
2:29
Go ahead and
create a new Python 3 one now.
2:32
Up here at the top, you'll see it's
listed here as an untitled notebook.
2:35
I'm going to go ahead and
name this as Treehouse Learning.
2:38
And if I was to go and
check my home directory,
2:43
I would see that I have
a TreehouseLearning.ipynb file,
2:49
and it's in my home directory because
that's where I started my server.
2:56
If you started your server in a different
directory it would be in there.
2:58
So, this here is the Python notebook.
3:02
I can pass this file to somebody and
they would have the same notebook as mine.
3:04
Remember how I told you this used
to be called IPython notebook?
3:08
Well, that's why it's ipynb,
IPython notebook.
3:12
All right, so we have Jupyter Notebook
installed, we have our server running, and
3:17
we have a notebook waiting for us to use.
3:22
In the next video I'll show you how to
add and run cells in your notebook.
3:24
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up