官术网_书友最值得收藏!

Installing Jupyter Notebook

Jupyter is a platform for Python development that contains some tools and environments for running Python and has more features than the standard interpreter. It contains the powerful Jupyter Notebook, which allows you to write programs in a web browser. It also formats your code, shows output, and allows you to annotate your scripts. It is a great tool for exploring datasets and we will be using it as our main environment for the code in this book.

To install the Jupyter Notebook on your computer, you can type the following into a command line prompt (not into Python):

    $ conda install jupyter notebook

You will not need administrator privileges to install this, as Anaconda keeps packages in the user's directory.

With the Jupyter Notebook installed, you can launch it with the following:

    $ jupyter notebook

Running this command will do two things. First, it will create a Jupyter Notebook instance - the backend - that will run in the command prompt you just used. Second, it will launch your web browser and connect to this instance, allowing you to create a new notebook. It will look something like the following screenshot (where you need to replace /home/bob with your current working directory):

To stop the Jupyter Notebook from running, open the command prompt that has the instance running (the one you used earlier to run the jupyter notebook   command). Then, press Ctrl + C and you will be prompted Shutdown this notebook server (y/[n])?. Type y and press Enter and the Jupyter Notebook will shut down.

主站蜘蛛池模板: 东乌| 永济市| 马龙县| 应城市| 平武县| 苍溪县| 余干县| 民权县| 安乡县| 中山市| 东台市| 收藏| 郸城县| 屏边| 贵阳市| 鄄城县| 祁门县| 台北县| 华亭县| 阿拉善右旗| 封丘县| 兰溪市| 大邑县| 丹凤县| 阿克苏市| 佛学| 黑龙江省| 家居| 巫山县| 蒲江县| 岑溪市| 新龙县| 九龙县| 敦化市| 焉耆| 六盘水市| 同江市| 武强县| 交城县| 辽宁省| 福鼎市|