Skip to content

Commit 1d8586b

Browse files
author
Prabhakar Kumar
committed
Updates jupyterlab install instructions.
1 parent 34f1887 commit 1d8586b

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

README.md

+7-10
Original file line numberDiff line numberDiff line change
@@ -65,22 +65,17 @@ Install this Python package from the Python Package Index (PyPI) or build it fro
6565
### Install from PyPI
6666

6767
```bash
68-
python3 -m pip install jupyter-matlab-proxy
68+
python -m pip install jupyter-matlab-proxy
6969
```
7070
Installing this package will not install MATLAB. To execute MATLAB code in Jupyter, you must have [MATLAB installed](https://www.mathworks.com/help/install/install-products.html) separately.
7171

72-
The package lets you execute MATLAB code in both JupyterLab 3 and JupyterLab 4, but syntax highlighting and auto indentation are currently only supported on JupyterLab 3. Install JupyterLab 3 using:
73-
```bash
74-
python3 -m pip install 'jupyterlab>=3.0.0,<4.0.0a0'
75-
```
76-
7772
### Build from Source
7873

7974
Alternatively, you can install this package by building it from the source. This requires Node.js® version 16 or higher. To install Node.js, see [Node.js Downloads](https://nodejs.org/en/download/).
8075
```bash
8176
git clone https://github.com/mathworks/jupyter-matlab-proxy.git
8277
cd jupyter-matlab-proxy
83-
python3 -m pip install .
78+
python -m pip install .
8479
```
8580

8681
### Integration with JupyterHub
@@ -104,16 +99,18 @@ This section shows you how to:
10499
2. [Open MATLAB in a Browser](#open-matlab-in-a-browser)
105100
3. [Edit MATLAB files in JupyterLab](#edit-matlab-files-in-jupyterlab)
106101

107-
Install the Jupyter Notebook or JupyterLab based on your preference
102+
Install Jupyter Notebook or JupyterLab:
108103

109104
```bash
110105
# For Jupyter Notebook
111106
python -m pip install notebook
112107

113-
# For JupyterLab
114-
python -m pip install jupyterlab
108+
# For JupyterLab 3
109+
python -m pip install 'jupyterlab>=3.0.0,<4.0.0a0'
115110
```
116111

112+
Note: the package allows you to execute MATLAB code in both JupyterLab 3 and JupyterLab 4, but syntax highlighting and auto indentation are currently only supported on JupyterLab 3. To upgrade to JupyterLab 4, run `python -m pip install --upgrade jupyterlab`.
113+
117114
Open your Jupyter environment by starting Jupyter Notebook or JupyterLab.
118115

119116
```bash

0 commit comments

Comments
 (0)