The purpose of this document is to show you how to get started with Microsoft Azure Notebooks.
Directly from their website, Microsoft Azure Notebooks is a free service that provides Jupyter notebooks along with supporting packages for R and Python. This means you can just login and get going since no installation/setup is necessary.
Essentially, this service allows you to run code right in your Web browser, without having to install software on your computer.
This tutorial will walk through how you can quickly get set up with a free account on Microsoft Azure Notebooks. From there, you will use this service in the coming weeks to:
You should see a page that looks like this.
This will bring up a window like this.
You should now see a page that looks like this.
Please enter the same username you have for the MITx platform. If this username is already taken, then you can add additional letters or numbers to the end of it. If you cannot use this username because it contains invalid characters, then feel free to change it slightly so it works.
Once you are satisfied with your user ID, click the blue Save button. The dialog box should go away, and you should now have complete access to the Microsoft Azure Notebooks platform!
If you have any issues or questions setting up, here are the steps you should follow.
Microsoft Azure Notebooks has a bunch of great resources for programmers, both beginners and more advanced coders. Here are some examples:
To view and run the code for any of these libraries, first, click the Clone button at the top of the page.
Then, in the dialog box that comes up, just click the blue Clone button.
This will open up the exact same view of files, but now copied into your own personal library. See the steps below for how to use one of these notebooks.
You may be wondering - how exactly do I use one of these notebooks? Here’s some information to help answer that question.
First, here are some basics you need to know to get started:
Saving the notebook. This is one of the most important actions you can take. You don’t want to lose all the hard work you put into the notebook. We recommend you save as often as possible. To save the notebook, you can press the Save and checkpoint button in the top left part of the screen, or press the typical Save keyboard shortcut for your operating system (Ctrl + S for Windows, Cmd + S for Mac, etc.).
You should verify that the top of the notebook says “Last checkpoint: a few seconds ago” to confirm that the save was successful.
Running a cell. To run a particular cell in the notebook, you can press the Run button at the top of the window, or use the Shift + Enter keyboard shortcut. (You can view all keyboard shortcuts by clicking the keyboard icon at the top of the navigation bar.)
When a cell runs, it will have an asterisk (*) to the left as it completes its operation, like this:
Adding a new cell. To add a new cell to the notebook, you can press the Insert cell button at the top left of the window, or use the Esc, B keyboard shortcut.
Deleting a cell. To delete a cell from the notebook, you can press the Cut cell button at the top left of the window (directly to the right of the Insert cell button), or use the Esc, D, D keyboard shortcut.
Changing a cell type. Each cell in a Jupyter notebook can have one of the following types.
You can change the cell type by clicking the dropdown window at the top of the page and selecting the type you want for the current cell.
Editing an existing Markdown cell. To do this, simply double click on that cell. This will bring up the unformatted text, where you can actually edit the content. When you are satisfied with the result, you can run that cell!
For a lot more information, you can also check out the detailed information from the official Jupyter website.
We hope you enjoyed this tutorial for getting started with Microsoft Azure Notebooks. This service will be a key part of the course moving forward as it will allow us to quickly share code with all students, have you run it in the browser, then submit the results.