- Healthcare Analytics Made Simple
- Vikas (Vik) Kumar
- 393字
- 2021-07-23 17:18:25
Jupyter notebook
Now, let's explore Jupyter notebook, the Python programming tool we will use for most of this book. Go back to the Home tab and click the Launch button inside Jupyter icon. A new tab should open in your default browser that looks similar to the following screenshot:

This is the Files tab of the Jupyter application, where you can navigate your computer's directories to launch a new Jupyter notebook, open an existing one, or manage your directories.
Let's create a new Jupyter notebook. Locate the New drop-down menu on the upper right of the console and click it. In the drop-down menu, click Python 3. Another tab will open what looks like the following screenshot:

The box labeled with In is called a cell. The cell is the functional unit of Python programming inside of Jupyter. You enter your code in a cell and then click run to execute it. After you see the result, you can create a new cell and continue with your workflow, building on the previous results if you so choose.
Let's try an example. Click in the cell body, and type the following lines:
message = 'Hello World!'
print(message)
Then, find the Play button on the top toolbar and click it. You should see the Hello World! message immediately following the cell. You will also see a new cell below the text. This is the way Jupyter works.
Now, in the new cell, enter the following:
modified_message = message + ' Also, Hello World of Healthcare Analytics!'
print(modified_message)
Again, click the Play button. You should see the modified message under the second cell and the appearance of a third cell. Notice that the second cell is aware of what the message variable contains, even though it was assigned in the first cell. Jupyter remembers every command entered into the console for each session. To clear the memory, you must shut down and restart the kernel:

Now, let's end the current session. Go back to the Home tab in your browser. Click on the Running tab in the upper left. Under the Notebooks menu, you should see that Untitled.ipynb is running. Click the Shutdown button to the right and the notebook will disappear.
That's enough Jupyter for now. You will get more closely acquainted with it in the coming chapters.
- 大數(shù)據(jù)項目管理:從規(guī)劃到實現(xiàn)
- Microsoft Power BI Quick Start Guide
- 錯覺:AI 如何通過數(shù)據(jù)挖掘誤導(dǎo)我們
- Dreamweaver 8中文版商業(yè)案例精粹
- Hands-On Data Science with SQL Server 2017
- 大型數(shù)據(jù)庫管理系統(tǒng)技術(shù)、應(yīng)用與實例分析:SQL Server 2005
- Implementing Splunk 7(Third Edition)
- Blender 3D Printing by Example
- Mastering ServiceNow Scripting
- MCGS嵌入版組態(tài)軟件應(yīng)用教程
- Visual FoxPro程序設(shè)計
- 電腦日常使用與維護(hù)322問
- Salesforce Advanced Administrator Certification Guide
- 網(wǎng)絡(luò)脆弱性掃描產(chǎn)品原理及應(yīng)用
- 數(shù)據(jù)要素:全球經(jīng)濟(jì)社會發(fā)展的新動力