![]()
ea-bootcamp-day-1), and the dashboard will update to show you the contents of the directory. To find files in the Jupyter Notebook dashboard, you can click on the name of a directory (e.g. Navigate Files Using the Jupyter Notebook Dashboard You do not need an internet connection to run Jupyter Notebook locally. If there are any directories and files, you will see them listed in the dashboard, just like the data directory and notebook called week1.ipynb are listed in this image.ĭata Tip: While Jupyter Notebook looks like an online interface, when you launch it from the terminal, like you did in this lesson, it is actually running locally on our computer. This is what Jupyter Notebook dashboard will look like when you launch it. Its main purpose is to display the notebooks and files in the current directory. The dashboard serves as a homepage for Jupyter Notebook. If your commands were successful, your default web browser will open with a new tab that displays your Jupyter Notebook dashboard. This is what the Terminal looks like with a Jupyter Notebook session running. It is running a local server for Jupyter Notebook so that you can interact with it in your web browser. Be sure to leave the Terminal open while you use Jupyter Notebook. You will notice that the Terminal is running commands to start your Jupyter Notebook session. This server runs the Jupyter Notebook interface. When you type this command into the terminal, it will launch a local web server on your computer. Be sure to activate the environment in the terminal using the command conda activate earth-analytics-python before running the jupyter notebook command. NOTE: If you get an error jupyter: command not found, this means that you have not activated the conda environment that you installed for this textbook. You can use Shell (Terminal) to open Jupyter Notebook with the command, Jupyter Notebook. earth-analytics under your home directory) using cd directory-name.You can then check that the current working directory has been updated ( pwd). #Change directory python jupyter notebook macGit Bash for Windows or the terminal on Mac or Linux).Ĭhange the current working directory to your desired directory (e.g. Use Bash to Change to Your Working Directoryīegin by opening your terminal (i.e. Be sure to activate the environment in the terminal using the command conda activate earth-analytics-python before launching Jupyter Notebook. IMPORTANT: the jupyter notebook command requires that you have Jupyter Notebook installed on your computer! Jupyter Notebook was installed when you created the earth-analytics-python environment as a part of the setup for this textbook. ![]() It is ideal (but not required) to launch Jupyter Notebook from the working directory where all of the notebook files that you wish to use live, so you can easily access the files you need. #Change directory python jupyter notebook how toFirst, you need to know how to open Jupyter Notebook, which is done in the Terminal. Throughout this chapter, you will learn how to use Jupyter Notebook to write and document your Python code. Launch Jupyter Notebook From the Terminal
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |