Using the Jupyter Notebook server

Starting a Jupyter Notebook server is easy. When using a virtual environment, you'll need to activate the environment first, and then start the server. If not, make sure that Python and the location of the Notebook server are in the path environment variable.

Open the command prompt and enter jupyter notebook to start the server:

(mapboxenv) C:Python3Geospatial>jupyter notebook

The server will start and indicate the specifics of its port number and a token that can be used to relog into the web browser:

Starting the server will open a browser window in the system browser. The server address is localhost, and the default port is 8888. The browser will open at http://localhost:8888/tree:

Click the New button to create a new Notebook. Select the Python version from the Notebook section, and the new Notebook will open in a second tab. This Notebook should be renamed, as it quickly becomes difficult to organize Notebooks that are untitled:

Once the window has opened, the coding environment is live. In this example, we will import census tract data using GeoPandas, convert it to point data, select specific columns, and visualize it using MapboxGL—Jupyter.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset