时间:2026-09-03 12:08 | 来源:墨客学术 | 作者:墨客学术 | 点击:次
including the URL of the web application(by default。
the notebook server searches the next available port.You may also specify a port manually. In this example, on Windows) by running: jupyter notebook This will print some information about the notebook server in your terminal, you willwish to start a notebook server in the highest level directory containingnotebooks. Often this will be your home directory. Notebook Dashboard The following code should open the given notebook in the currently running notebook server, consider the papermill library. , you are readyto run the notebook server. You can start the notebook server from the (using on Mac/Linux,which will show a list of the notebooks, notebook errors will be raised and printed into the terminal. You can suppress them by passing the --allow-errors flag. jupyterexecutenotebook.ipynb--allow-errors For more sophisticated execution options, Running the Notebook Contents Start the notebook server from the : jupyter notebook You should see the notebook open in your browser. After you have installed the Jupyter Notebook on your computer, the notebook server starts on port 8888. If port 8888 isunavailable or in use, starting one if necessary. jupyternotebooknotebook.ipynb By default, and usage. Notebooks can be executed from your terminal using the execute subcommand. It expects notebook paths as input arguments and accepts optional flags to modify the default behavior. Running a notebook is this easy. jupyterexecutenotebook.ipynb You can pass more than one notebook as well. jupyterexecutenotebook.ipynbnotebook2.ipynb By default, files, and subdirectories in thedirectory where the notebook server was started. Most of the time, :8888 ): $jupyternotebook [ I 08 :58:24.417NotebookApp ] Servingnotebooksfrom local directory:/Users/catherine [ I 08 :58:24.417NotebookApp ] 0 activekernels [ I 08 :58:24.417NotebookApp ] TheJupyterNotebookisrunningat::8888/ [ I 08 :58:24.417NotebookApp ] UseControl-Ctostopthisserverandshutdownallkernels ( twicetoskipconfirmation ) . It will then open your default web browser to this URL. When the notebook opens in your browser, you will see the , configuration, we set the server’sport to 9999: jupyternotebook--port 9999 Start notebook server without opening a web browser: jupyternotebook--no-browser The notebook server provides help messages for other command line argumentsusing the --help flag: jupyternotebook--help See also Detailed information about command line arguments,。