Add to Watchlist

Jupyter Notebook - Introduction

9 views

Citation of segment
Embed Code
Purchasing a DVD Cite video
Series
Annotations
Transcript
so that things are coming again I am also just going to give a very very brief introduction of what Jupiter is and what a Jupyter notebook looks like you're going to have some great examples that come later that are more interactive have more visualizations but the actual structure of wattage Jupyter notebook is as what I'm going to talk about and of a little bit about the Jupiter project itself how many of you have already worked with Jupiter in any capacity before how many you have you have heard of it before this event OK and sort of a little bit about the history and the purpose of Jupiter notebooks and Jupiter project more broadly out stolid basic use and some for the resources I'll try to keep it brief so looking backwards and notebooks are not a new concept there's a lot of different software implementations they're similar to Jupiter and our starting around the mid 19 eighties so matlab is also kind of similar I guess you could you could say and Mathematica notebooks were some of the the earlier ones all related to mathematical equations and computing with text and documentation together in 1 place you'll see things like marked down and our studio as also kind of a similar environment maybe you could think of it that way but there's also other types of books that exist Jupiter's not alone in that field I I find itself was what Jupiter and Jupyter notebooks are based on and that was started to be about in 2001 and it stands for interactive Python so the idea was to create a way to work with Python in an interactive way than just having scripts that run the background the functions but finding ways to interact with the code and the process itself and by Python kernel that's being used now I'll explain what a kernel is later was developed in 2010 that's basically just an instance of I Python that is used in the so the 1st prototype of the notebooks came out in 2010 and then was taken over by what is now known as the Jupiter project in around 2014 that she decided to change the name because the I Python project itself was starting to move beyond just Python projects integrating different languages like Julia and and it has now expanded to many many different languages the Jupyter Notebook itself is programmed in Python and by some so it multi-language it's nonprofits open source and there's the Jupyter Notebook which is what most people will be talking about today is another part of the Jupiter project called Jupiter hub that allows multiple users to use notebooks on a distributed system so you can use that in a classroom setting for example and now the next generation is Jupiter lab which I'll briefly show and at the end but it ties in Jupyter notebooks with terminals a file browser at different coding environment so that you can connect different instances of kernels together copy and paste cells and do that all known 1 environment in your browser which is kind of cool the general purpose is just to combined text calculation graphics together also the writing of the GUI and maybe some weight actually presented the code and perhaps creating slides or just showing notebook itself each notebook contains multiple cells which are a little blocks you'll see that contain bits of code war the mark them for text it's meant to create more reproducible workflows and where the results that you actually generate are saved with the code that produces them perhaps also important is they're stored and what's known as an night high notebook file which has to do with the history of it should being coming from what it was known as I and and it's a version control friendly J. son so the structure of a python notebook has the document itself and the kernel which is what's doing all the computing so you basically have 2 parts the document itself is really but called text how what you basically that used to create slides there's a function for that you can add Magic's which is something that's specific type I find lots important but you should know they existed if you start playing around with them the notebooks and you can also run shell commands from the notebooks themselves the kernels are a separate processes that run the cold like I said and there are many different languages that these have been developed for so it doesn't have to be Python you can run on a Python notebook and Jupiter book you can run Julia you can run in many different languages so installation and you have to install python to have Jupiter notebooks run under system because the developed in Python and then you also have to additionally install anti kernels that you would like to use and but most importantly I think most of us will be talking about Jupiter in Python today so the recommended recommended installation Battisti's Anaconda or a kind environment and it is in doing that the instructions are here I'm not going to go through that now but so they're available but basically once you have installed you to run a notebook you just run the Jupyter Notebook amount which is here and it's launched in your browser under this default and port and I'll show you what I think we have an open somewhere here or the actual presentations today because of running so the
command line someone medicine as you
can see is just a command line and here's some round the Jupyter notebook and then the app itself was launched and is running and with allowance when it launches will just have a quick look
as this messages the Jupiter dashboard so where ever in your file system you wanted you get the stash dashboard which shows all the Jupiter and by the the folders that you have war the Jupyter
Notebooks themselves such as this 1 just very very simple and you can add markdowns change the actual what what each code block does in the code like down and there's a couple different options depending what you do this also marked down cell this is a code sound you could have learned logic equations and and other types of documentation when you run and I'll turn back into the formatted version you can add images is in this case it's and also in marked down the can add HTML code into the document and in the code itself which 1 is right it tells you what order everything has been around to input if there's an error it will display that there for you as output sort of an if you run another commands little print the output which is nice and than anything else the only thing is if you have multiple bits of code in a block that given output the last 1 is the only 1 that will show up in the document itself but that's the basics of to build a notebook traditional so 1 last thing
goes to the lab which is what I mentioned and to the and
of once you've launched a juvenile notebook book you can also just add lab at the end of you are from the top I will do is launch what is
Jupiter lab and in here you can have you know books running you can have multiple notebooks running at once you can create a different view for the same notebook and copy and paste rating drop different code blocks and engage with the documents that you have and this is something that has only been launched than about the last year and a half its it's something to check out if you decide to start working more with no books and you can open different terminals in a text editors it has much more functionality than just working with a book documents themselves from this that pitch and year of post a couple
the tutorials and recommends there's also something that's called a noble keyword that Jupiter project provides a view which is no book documents in case you don't have Jupyter notebook installed on your system you can just go online and obviously upload up of document and it will display it for you you can also display them on get have fairly easily things like that so that's just the very very basics of what Japan notebooks look like and you will see now what they can do
Loading...

Metadata

Formal Metadata

Title Jupyter Notebook - Introduction
Title of Series Maptime Salzburg
Author Augustin, Hannah
License CC Attribution 3.0 Germany:
You are free to use, adapt and copy, distribute and transmit the work or content in adapted or unchanged form for any legal purpose as long as the work is attributed to the author in the manner specified by the author or licensor.
DOI 10.5446/40249
Publisher Maptime Salzburg
Release Date 2019
Language English

Content Metadata

Subject Area Information technology

Related Material

Loading...
Feedback

Timings

  307 ms - page object

Version

AV-Portal 3.7.0 (943df4b4639bec127ddc6b93adb0c7d8d995f77c)