Okay.
I hope you're starting to get excited as I am about Jupiter notebooks because I seriously love these.
Now the beautiful thing the final last beautiful thing about these is because once you finish your project
you probably want to share your work.
Maybe that's true.
Get Harbaugh or give it to one of your teammates so they can check it out for you.
Now Jupiter notebooks makes that a breeze.
What you might have seen is throughout past few lectures is auto saved indicator here.
But if we wanted to generate that normally if we wanted to save our work so we're finished for the day
and when we want to save it shut up shop then come back get ready for tomorrow we can go save here now
is going to automatically save it or remember how we're not getting used to using this if we are in
command mode which is the blue square and no pencil up here.
We can hit s which is a shortcut for save.
Otherwise at any time that you want You can also hit command s if you're on a Mac or control less if
you're on Windows or something like that.
It's a good habit to get into if you're continually hitting command s or save or just clicking this.
But again remember you want to focus on using the keyboard because saving your work often will prevent
you having to redo things.
If for some reason you end up losing something okay.
So a notebook is saved.
Now how do we shut it down if we come back to the Jupiter dashboard.
We can see running.
And you've got this shut down button here.
But usually you probably won't use that.
So just shut our notebook down.
We're going to go into terminal and we can see here that we've saved our notebooks several times and
this is timestamps.
So these are the last three saves that we did pretty close together after each other to shut the notebook
down and stop your terminal from running going to hit control plus C then it's going to ask you yes
or no you're going to have to hit Y or N within five seconds.
I hit y because I want to shut it down.
That's what you'll see here shutting down one kernel.
Let's go back here.
Go files running we have to refresh this or close this.
Sometimes a Jupiter dashboard won't update because we've closed the connection in our terminal.
But that's fine.
We can X out of this.
So now Jupiter notebook is no longer running.
It is saved in our sample project folder.
We come back here and they'll cause sample project.
There we go.
Example notebook.
And it's going to say Date Modified today at 11 twenty seven am.
There we go.
Save it two minutes ago.
Beautiful.
And what you'll see here is we're now back.
We've got the environment activated within the sample project folder so what I would have wanted to
completely get out of the environment as well like Conda deactivate.
Maybe you want to activate another environment to work on another project.
So to get out of your current environment you can type in conduct deactivate that's going to take you
back to base the base the default environment but we're still within the sample project folder so if
we came back tomorrow let's let's exit out of everything that we have opened actually so we can see
what it's like to come back completely from scratch because this is what what you want to be doing.
Remember this is what we've set up.
We've got our project folder.
You've seen some data being imported into the workspaces but a notebook and you've seen a little bit
a little highlight of using some tools within your environment.
So let's reactivate this whole set up again.
Terminal we're going to increase the size.
See how I have base activated by default.
I'm going to change into my sample project folder so desktop mind stored on my desktop under email course
yours might be different remember.
Now I'm within the sample project folder if I hit a less I can see the image that we uploaded.
I can see my environment I can see my notebook and I can see the data there heart disease dealt CSB
so if we wanted to access a notebook let's enter Jupiter notebook huh.
Command not found.
Take a second to think about why that command might not work.
If you'd guess that we didn't have our environment activated.
That's correct but that's alright if you didn't because it took me ages to get used to this kind of
workflow but I want to show you.
So Conda activate not activation Conda activate.
We're gonna reactivate our environment users isn't it users.
Daniel.
Desktop.
Slash and pause slash sample project slash.
There we go.
We notice that base has changed to this.
Now if we run the Jupiter notebook command again.
Jupiter notebook.
What do you think this will do.
Let's see
this is gonna bring us back to the Jupiter dashboard.
Now if we go into running we've got no notebooks no terminals running.
We noticed that our terminal has changed again to this this funky looking code.
All it's saying is we've got a Jupiter notebook server running on local host Don.
8 8 8 which is the same as here.
Quite a not not Triple 8.
We have our notebook here to start it up.
You can click on it.
And we come back beautiful.
We've got everything that we were we were looking at before and the previous video.
Now the thing to remember is that when you reload a Jupiter notebook all the cells all the memory of
the cells will start from scratch so we wanted to rerun this cell.
Remember to run a cell is shift plus enter or this run button but we're ignoring the toolbar we want
to get proficient at using the keyboard shift enter.
It's gonna start back at 1:00 and if we do the same two same three.
Now if we ran this a what do you think I will be equal to as the output because we've gone to three
equals six angles five shift into I equals six.
Remember because Jupiter notebook cells a running order of execution and so this is the workflow that
you would take if you were coming back to work on your project again you might have to rerun all of
your cells so the code say we were working down here you may have to rerun all of the cells above so
that you can work on your code down here and you're not missing out on any data.
And the final beautiful thing is because we've now got a workspace that we can work on our entire projects.
We can also share this workspace.
So if we come back our sample project folder that we've been working through has our environment has
our data has this image that we've we've been looking at and it has our notebook which contains code
and text about the project we're working on.
So if my team name was like Hey Daniel can you share with me the Jupiter notebook you've been working
on for the heart disease project I could be like sure I could send them this and then they could if
they've got this exact same set up on their computer they could start up an environment import the data
work through the six step AML framework and then run the code and read my descriptions throughout my
Jupiter notebook.
So that is a beautiful thing about Jupiter notebooks are kind of like the all in one workspace for Data
Science and machine learning projects.
So in the next few lectures or in the next few lessons and projects we're going to really dig into this
this little framework here at the same time it working out how to apply different data science and machine
learning tools such as these within our Jupiter notebook.