-
Notifications
You must be signed in to change notification settings - Fork 275
Install and Setup Jupyter Notebook Lab for Testing
Don Jayamanne edited this page May 28, 2023
·
2 revisions
- Install Python on your machine (preferably from https://www.python.org/downloads/) Note: Ananconda/Miniconda/PyEnv are other great (if not better) options.
- Once installed open a terminal in a specific folder (thats where we will create the Python Virtual Environment)
- In the terminal ensure the previously install Python executable is in your path
- Create a Python environment, install the python packages as follows in the terminal
-
python -m venv .venv
(if you run into errors, replacepython
with the fully qualified path to python exe from previous installation) source .venv/bin/activate
python -m pip install jupyter lab notebook
If you now want to start Jupyter you can use python -m jupyter notebook
- Start Jupyter Notebook
python -m jupyter notebook --NotebookApp.allow_origin='*'
- Start Jupyter Lab
python -m jupyter lab --NotebookApp.allow_origin='*'
- Start Jupyter Lab with a specific token
python -m jupyter lab --NotebookApp.allow_origin='*' --NotebookApp.token=ABCD
- Start Jupyter Lab with an empty token
python -m jupyter lab --NotebookApp.allow_origin='*' --NotebookApp.token=
- Start Jupyter Lab with an empty password and empty token
python -m jupyter lab --NotebookApp.allow_origin='*' --NotebookApp.token= --NotebookApp.password=
- Start Jupyter Lab with a specific Password = 'Hello'
First generate the hash of the passwordHello
python -c "from notebook.auth import passwd;print(passwd('Hello', 'sha1'))"
sha1:f38e2e15d770:b97ffda8260e04ab8123b67eea9989764bf9690b
Use the output from the previous step to pass the hashed password as follows:
python -m jupyter lab --NotebookApp.allow_origin='*' --NotebookApp.password=sha1:f38e2e15d770:b97ffda8260e04ab8123b67eea9989764bf9690b
- Contribution
- Source Code Organization
- Coding Standards
- Profiling
- Coding Guidelines
- Component Governance
- Writing tests
- Kernels
- Intellisense
- Debugging
- IPyWidgets
- Extensibility
- Module Dependencies
- Errors thrown
- Jupyter API
- Variable fetching
- Import / Export
- React Webviews: Variable Viewer, Data Viewer, and Plot Viewer
- FAQ
- Kernel Crashes
- Jupyter issues in the Python Interactive Window or Notebook Editor
- Finding the code that is causing high CPU load in production
- How to install extensions from VSIX when using Remote VS Code
- How to connect to a jupyter server for running code in vscode.dev
- Jupyter Kernels and the Jupyter Extension