5/16/2023 0 Comments Jupyter notebook mac![]() Note that your prompt changes back (see the pic below) Once you are done, remember to exit your virtualenv using the following command: (ipy-jupyter-venv3) Lipings-MacBook-Pro:test_jupyter Liping$ deactivate To stop the Jupyter Notebook process, press CTRL+C, Then insert one cell by the menu shown below (insert Cell Below).Īnd then hit Ctrl + Enter. Hit Ctrl + Enter, you will see it the text changed into heading style. We can now write notes using Markdown, for example, type the following into the cell after changing it to markdown: # Testing For example, change the first cell to accept Markdown by clicking Cell > Cell Type > Markdown from the top navigation bar, or by click the Markdown shown in the pic below. We can now run Python code in the cell or change the cell to markdown (markdown is for note, not for code). If you see older version ( ipy-jupyter-venv3 from the top right pull-down menu (Note: this is the so called kernel we installed in Step 8 above): Type python3 in your terminal, if you see similar warning as the pic shown below, it means you will need to install Python 3 (see the steps below for installation). Type exit() to exit from the Python 2.7 environment Type in python, if you see similar thing as the pic shown below, it means python 2.7 was installed on your Mac Open a terminal (in your launchpad, type in terminal, and then click and open it.) To test whether your Mac has Python 2.x or 3.x, look at the instructions below. Step 1: Check whether Python is installed on your Mac See below for example.įollow the steps below for detailed instructions. Open a terminal on your mac and type in Python and Python3 to see whether Python and Python3 installed on your mac. ![]() Most probably your Mac has already come with Python installed (see step 1 and step 2 below to check whether Python and Python 3 is installed on your mac, because my Mac book air has both Python and Python3.6 installed, I will go ahead to step 3 to install virtualenv). This page provides the instructions for how to install and run IPython and Jupyter Notebook in a virtualenv on Mac.
0 Comments
Leave a Reply. |