1 00:00:00,470 --> 00:00:00,820 Okay. 2 00:00:01,230 --> 00:00:06,750 I hope you're starting to get excited as I am about Jupiter notebooks because I seriously love these. 3 00:00:06,750 --> 00:00:13,080 Now the beautiful thing the final last beautiful thing about these is because once you finish your project 4 00:00:13,110 --> 00:00:14,760 you probably want to share your work. 5 00:00:14,760 --> 00:00:15,650 Maybe that's true. 6 00:00:15,660 --> 00:00:20,100 Get Harbaugh or give it to one of your teammates so they can check it out for you. 7 00:00:20,370 --> 00:00:23,400 Now Jupiter notebooks makes that a breeze. 8 00:00:23,490 --> 00:00:29,460 What you might have seen is throughout past few lectures is auto saved indicator here. 9 00:00:29,680 --> 00:00:34,740 But if we wanted to generate that normally if we wanted to save our work so we're finished for the day 10 00:00:35,150 --> 00:00:43,100 and when we want to save it shut up shop then come back get ready for tomorrow we can go save here now 11 00:00:43,100 --> 00:00:49,770 is going to automatically save it or remember how we're not getting used to using this if we are in 12 00:00:49,770 --> 00:00:55,150 command mode which is the blue square and no pencil up here. 13 00:00:55,350 --> 00:00:59,730 We can hit s which is a shortcut for save. 14 00:00:59,730 --> 00:01:05,790 Otherwise at any time that you want You can also hit command s if you're on a Mac or control less if 15 00:01:05,790 --> 00:01:07,790 you're on Windows or something like that. 16 00:01:07,830 --> 00:01:14,870 It's a good habit to get into if you're continually hitting command s or save or just clicking this. 17 00:01:14,880 --> 00:01:22,020 But again remember you want to focus on using the keyboard because saving your work often will prevent 18 00:01:22,140 --> 00:01:23,540 you having to redo things. 19 00:01:23,550 --> 00:01:27,710 If for some reason you end up losing something okay. 20 00:01:27,860 --> 00:01:29,570 So a notebook is saved. 21 00:01:29,570 --> 00:01:35,290 Now how do we shut it down if we come back to the Jupiter dashboard. 22 00:01:35,360 --> 00:01:36,620 We can see running. 23 00:01:36,770 --> 00:01:38,510 And you've got this shut down button here. 24 00:01:38,510 --> 00:01:41,100 But usually you probably won't use that. 25 00:01:41,120 --> 00:01:42,680 So just shut our notebook down. 26 00:01:42,680 --> 00:01:47,900 We're going to go into terminal and we can see here that we've saved our notebooks several times and 27 00:01:47,900 --> 00:01:49,320 this is timestamps. 28 00:01:49,370 --> 00:01:54,920 So these are the last three saves that we did pretty close together after each other to shut the notebook 29 00:01:54,920 --> 00:02:01,790 down and stop your terminal from running going to hit control plus C then it's going to ask you yes 30 00:02:01,790 --> 00:02:06,020 or no you're going to have to hit Y or N within five seconds. 31 00:02:06,020 --> 00:02:08,570 I hit y because I want to shut it down. 32 00:02:08,610 --> 00:02:11,690 That's what you'll see here shutting down one kernel. 33 00:02:11,720 --> 00:02:12,610 Let's go back here. 34 00:02:14,040 --> 00:02:21,270 Go files running we have to refresh this or close this. 35 00:02:21,650 --> 00:02:28,780 Sometimes a Jupiter dashboard won't update because we've closed the connection in our terminal. 36 00:02:28,780 --> 00:02:29,580 But that's fine. 37 00:02:29,590 --> 00:02:31,410 We can X out of this. 38 00:02:31,450 --> 00:02:34,390 So now Jupiter notebook is no longer running. 39 00:02:34,390 --> 00:02:38,910 It is saved in our sample project folder. 40 00:02:38,930 --> 00:02:47,060 We come back here and they'll cause sample project. 41 00:02:47,120 --> 00:02:47,950 There we go. 42 00:02:47,960 --> 00:02:49,190 Example notebook. 43 00:02:49,190 --> 00:02:53,570 And it's going to say Date Modified today at 11 twenty seven am. 44 00:02:53,570 --> 00:02:54,020 There we go. 45 00:02:54,020 --> 00:02:55,230 Save it two minutes ago. 46 00:02:55,250 --> 00:02:56,130 Beautiful. 47 00:02:56,330 --> 00:02:58,970 And what you'll see here is we're now back. 48 00:02:59,180 --> 00:03:04,760 We've got the environment activated within the sample project folder so what I would have wanted to 49 00:03:04,760 --> 00:03:08,710 completely get out of the environment as well like Conda deactivate. 50 00:03:09,500 --> 00:03:13,520 Maybe you want to activate another environment to work on another project. 51 00:03:13,520 --> 00:03:19,630 So to get out of your current environment you can type in conduct deactivate that's going to take you 52 00:03:19,630 --> 00:03:26,590 back to base the base the default environment but we're still within the sample project folder so if 53 00:03:26,590 --> 00:03:31,120 we came back tomorrow let's let's exit out of everything that we have opened actually so we can see 54 00:03:31,120 --> 00:03:37,080 what it's like to come back completely from scratch because this is what what you want to be doing. 55 00:03:37,210 --> 00:03:38,590 Remember this is what we've set up. 56 00:03:38,590 --> 00:03:40,060 We've got our project folder. 57 00:03:40,090 --> 00:03:45,310 You've seen some data being imported into the workspaces but a notebook and you've seen a little bit 58 00:03:45,430 --> 00:03:49,120 a little highlight of using some tools within your environment. 59 00:03:49,120 --> 00:03:51,910 So let's reactivate this whole set up again. 60 00:03:51,910 --> 00:03:56,500 Terminal we're going to increase the size. 61 00:03:56,720 --> 00:03:59,130 See how I have base activated by default. 62 00:03:59,150 --> 00:04:06,600 I'm going to change into my sample project folder so desktop mind stored on my desktop under email course 63 00:04:06,600 --> 00:04:08,700 yours might be different remember. 64 00:04:08,900 --> 00:04:14,440 Now I'm within the sample project folder if I hit a less I can see the image that we uploaded. 65 00:04:14,450 --> 00:04:21,140 I can see my environment I can see my notebook and I can see the data there heart disease dealt CSB 66 00:04:22,190 --> 00:04:27,260 so if we wanted to access a notebook let's enter Jupiter notebook huh. 67 00:04:27,510 --> 00:04:29,340 Command not found. 68 00:04:29,580 --> 00:04:33,260 Take a second to think about why that command might not work. 69 00:04:33,510 --> 00:04:36,300 If you'd guess that we didn't have our environment activated. 70 00:04:36,330 --> 00:04:41,190 That's correct but that's alright if you didn't because it took me ages to get used to this kind of 71 00:04:41,190 --> 00:04:43,170 workflow but I want to show you. 72 00:04:43,530 --> 00:04:46,840 So Conda activate not activation Conda activate. 73 00:04:46,860 --> 00:04:50,790 We're gonna reactivate our environment users isn't it users. 74 00:04:50,790 --> 00:04:51,770 Daniel. 75 00:04:51,930 --> 00:04:52,800 Desktop. 76 00:04:52,800 --> 00:05:00,340 Slash and pause slash sample project slash. 77 00:05:01,830 --> 00:05:02,400 There we go. 78 00:05:02,400 --> 00:05:05,910 We notice that base has changed to this. 79 00:05:05,940 --> 00:05:08,340 Now if we run the Jupiter notebook command again. 80 00:05:08,370 --> 00:05:10,740 Jupiter notebook. 81 00:05:11,160 --> 00:05:12,220 What do you think this will do. 82 00:05:12,990 --> 00:05:13,470 Let's see 83 00:05:17,750 --> 00:05:21,260 this is gonna bring us back to the Jupiter dashboard. 84 00:05:21,260 --> 00:05:24,820 Now if we go into running we've got no notebooks no terminals running. 85 00:05:24,890 --> 00:05:29,240 We noticed that our terminal has changed again to this this funky looking code. 86 00:05:29,240 --> 00:05:34,280 All it's saying is we've got a Jupiter notebook server running on local host Don. 87 00:05:34,340 --> 00:05:37,060 8 8 8 which is the same as here. 88 00:05:37,220 --> 00:05:39,250 Quite a not not Triple 8. 89 00:05:39,440 --> 00:05:42,400 We have our notebook here to start it up. 90 00:05:42,470 --> 00:05:43,220 You can click on it. 91 00:05:44,320 --> 00:05:46,490 And we come back beautiful. 92 00:05:46,480 --> 00:05:51,290 We've got everything that we were we were looking at before and the previous video. 93 00:05:51,290 --> 00:05:57,620 Now the thing to remember is that when you reload a Jupiter notebook all the cells all the memory of 94 00:05:57,620 --> 00:06:02,180 the cells will start from scratch so we wanted to rerun this cell. 95 00:06:02,360 --> 00:06:07,850 Remember to run a cell is shift plus enter or this run button but we're ignoring the toolbar we want 96 00:06:07,850 --> 00:06:11,610 to get proficient at using the keyboard shift enter. 97 00:06:12,140 --> 00:06:17,200 It's gonna start back at 1:00 and if we do the same two same three. 98 00:06:17,210 --> 00:06:25,280 Now if we ran this a what do you think I will be equal to as the output because we've gone to three 99 00:06:26,010 --> 00:06:31,410 equals six angles five shift into I equals six. 100 00:06:31,430 --> 00:06:37,750 Remember because Jupiter notebook cells a running order of execution and so this is the workflow that 101 00:06:37,750 --> 00:06:42,490 you would take if you were coming back to work on your project again you might have to rerun all of 102 00:06:42,490 --> 00:06:49,300 your cells so the code say we were working down here you may have to rerun all of the cells above so 103 00:06:49,300 --> 00:06:53,590 that you can work on your code down here and you're not missing out on any data. 104 00:06:53,860 --> 00:06:59,940 And the final beautiful thing is because we've now got a workspace that we can work on our entire projects. 105 00:07:00,100 --> 00:07:03,060 We can also share this workspace. 106 00:07:03,060 --> 00:07:09,430 So if we come back our sample project folder that we've been working through has our environment has 107 00:07:09,430 --> 00:07:16,180 our data has this image that we've we've been looking at and it has our notebook which contains code 108 00:07:16,420 --> 00:07:18,790 and text about the project we're working on. 109 00:07:18,790 --> 00:07:23,860 So if my team name was like Hey Daniel can you share with me the Jupiter notebook you've been working 110 00:07:23,860 --> 00:07:29,200 on for the heart disease project I could be like sure I could send them this and then they could if 111 00:07:29,200 --> 00:07:35,080 they've got this exact same set up on their computer they could start up an environment import the data 112 00:07:35,530 --> 00:07:42,070 work through the six step AML framework and then run the code and read my descriptions throughout my 113 00:07:42,070 --> 00:07:43,780 Jupiter notebook. 114 00:07:43,780 --> 00:07:50,170 So that is a beautiful thing about Jupiter notebooks are kind of like the all in one workspace for Data 115 00:07:50,170 --> 00:07:52,450 Science and machine learning projects. 116 00:07:52,510 --> 00:07:57,820 So in the next few lectures or in the next few lessons and projects we're going to really dig into this 117 00:07:57,880 --> 00:08:04,720 this little framework here at the same time it working out how to apply different data science and machine 118 00:08:04,720 --> 00:08:08,740 learning tools such as these within our Jupiter notebook.