![]() This makes it easy to separate out your code into logical chunks without needing to reimport libraries or recreate variables or functions in every cell. If you have multiple cells in your Notebook, and you run the cells in order, you can share your variables and imports across cells. When I ran the code above, the output looked like this: If you prefer using your keyboard, you can just press Shift + Enter. To execute a cell, you can just select the cell and click the Run button that is in the row of buttons along the top. Running a cell means that you will execute the cell’s contents. You should now see an in-browser dialog titled Rename Notebook. Just move your mouse over the word Untitled and click on the text. Since that isn’t a very descriptive name, let’s change it! This is the title for the page and the name of your Notebook. You will notice that at the top of the page is the word Untitled. Your web page should now look like this: Naming For simplicity’s sake, let’s choose Python 3. On my machine, I happen to have Python 2 and Python 3 installed, so I can create a Notebook that uses either of these. #Jupyter vs jupyterlab how toNow that you know how to start a Notebook server, you should probably learn how to create an actual Notebook document.Īll you need to do is click on the New button (upper right), and it will open up a list of choices. Let’s actually create a Notebook now! Creating a Notebook Note that right now you are not actually running a Notebook, but instead you are just running the Notebook server. This will start up Jupyter and your default browser should start (or open a new tab) to the following URL: Your browser should now look something like this: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |