You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Advanced-Usage.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ The following table describes all the environment variables that you can set to
32
32
|**MWI_CUSTOM_MATLAB_ROOT**| string (optional) |`"/path/to/matlab/root/"`| Optionally, provide a custom path to MATLAB root. For more information see [Adding MATLAB to System Path](#adding-matlab-to-system-path)|
33
33
|**MWI_PROCESS_START_TIMEOUT**| integer (optional) |`1234`| This field controls the time (in seconds) for which `matlab-proxy` waits for the processes it spins up, viz: MATLAB & Xvfb, to respond. By default, this value is `600 seconds`. A timeout could either indicate an issue with the spawned processes or be a symptom of a resource-constrained environment. Increase this value if your environment needs more time for the spawned processes to start.|
34
34
|**MWI_MATLAB_STARTUP_SCRIPT**| string (optional) |`"addpath('/path/to/a/folder'), c=12"`| Executes string provided at MATLAB startup. For details, see [Run Custom MATLAB Startup Code](#run-custom-matlab-startup-code)|
35
-
| **MWI_SHUTDOWN_ON_IDLE_TIMEOUT** | integer (optional) | 60 | Defines the duration in minutes, that `matlab-proxy` remains idle before shutting down. When you do not set the variable, `matlab-proxy` will not shutdown when idle. For details, [see Shutdown on Idle](#shutdown-on-idle).
35
+
|**MWI_SHUTDOWN_ON_IDLE_TIMEOUT**| integer (optional) | 60 | Defines the duration in minutes, that `matlab-proxy` remains idle before shutting down. When you do not set the variable, `matlab-proxy` will not shut down when idle. For details, [see Shutdown on Idle](#shutdown-on-idle).|
36
36
37
37
## Shutdown on Idle
38
38
@@ -181,6 +181,6 @@ Note: Restarting MATLAB from within `matlab-proxy` will run the specified code a
Copy file name to clipboardExpand all lines: README.md
+26-12Lines changed: 26 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -3,11 +3,11 @@
3
3
4
4
----
5
5
6
-
`matlab-proxy` is a Python® package which enables you to launch MATLAB® and access it from a web browser.
6
+
Use this Python® package `matlab-proxy`to start MATLAB® and access it from a web browser.
7
7
8
-
Installation of this package creates an executable `matlab-proxy-app`, which launches MATLAB and provides a URL to access it.
8
+
Install this package to create an executable `matlab-proxy-app`, which starts MATLAB and provides you a URL to access it.
9
9
10
-
The MATLAB Proxy is under active development. For support or to report issues, see the [Feedback](#feedback) section.
10
+
MATLAB Proxy is under active development. For support or to report issues, see [Feedback](#feedback).
11
11
12
12
----
13
13
@@ -23,17 +23,19 @@ The MATLAB Proxy is under active development. For support or to report issues, s
23
23
-[Feedback](#feedback)
24
24
25
25
## Requirements
26
-
* MATLAB® R2020b or later is installed and on the system PATH.
26
+
* MATLAB® R2020b or later, installed and added to the system PATH.
27
27
```bash
28
28
# Confirm MATLAB is on the PATH
29
29
which matlab
30
30
```
31
31
* The dependencies required to run MATLAB.
32
-
Refer to the Dockerfiles in the [matlab-deps](https://github.com/mathworks-ref-arch/container-images/tree/master/matlab-deps) repository for the desired version of MATLAB.
32
+
For details, refer to the Dockerfiles in the [matlab-deps](https://github.com/mathworks-ref-arch/container-images/tree/master/matlab-deps) repository for your desired version of MATLAB.
33
33
34
-
* X Virtual Frame Buffer (Xvfb) : (only for Linux® based systems)
34
+
* X Virtual Frame Buffer (Xvfb) (only for Linux® based systems):
35
+
36
+
Installing Xvfb is optional (starting v0.11.0 of matlab-proxy) but highly recommended. Xvfb enables graphical abilities like plots and figures in the MATLAB desktop.
37
+
To install Xvfb on your Linux machine, use:
35
38
36
-
Install it on your linux machine using:
37
39
```bash
38
40
# On a Debian/Ubuntu based system:
39
41
$ sudo apt install xvfb
@@ -46,7 +48,17 @@ The MATLAB Proxy is under active development. For support or to report issues, s
46
48
$ sudo yum install xorg-x11-server-Xvfb
47
49
```
48
50
49
-
*Note: The installation of Xvfb is **optional** (w.e.f. v0.11.0 of matlab-proxy). However, we highly recommend installing it.*
51
+
52
+
* Fluxbox Window Manager (only for Linux® based systems):
53
+
54
+
Installing fluxbox is optional but required to use Simulink Online.
* Open a Linux terminal and launch the application with
99
+
* Open a terminal and start `matlab-proxy-app`. On Linux, the command would be
88
100
```bash
89
101
env MWI_BASE_URL="/matlab" matlab-proxy-app
90
102
```
@@ -131,7 +143,7 @@ The following options are available in the status panel (some options are only a
131
143
132
144
## Examples
133
145
* For installing/usage in a Docker container, see this [Dockerfile](./examples/Dockerfile) and its [README](./examples/README.md).
134
-
* For upgrading **matlab-proxy** in an existing Docker image, see this [Dockerfile.upgrade.matlab-proxy](./examples/Dockerfile.upgrade.matlab-proxy) and its [README](./examples/README.md#upgrading-matlab-proxy-package-in-a-docker-image).*
146
+
* For upgrading **matlab-proxy** in an existing Docker image, see this [Dockerfile.upgrade.matlab-proxy](./examples/Dockerfile.upgrade.matlab-proxy) and its [README](./examples/README.md#upgrading-matlab-proxy-package-in-a-docker-image).
135
147
* For usage in a Jupyter environment, see [jupyter-matlab-proxy](https://github.com/mathworks/jupyter-matlab-proxy).
136
148
137
149
## Platform Support
@@ -169,8 +181,10 @@ To install `matlab-proxy` in WSL 2, follow the steps mentioned in the [Installat
169
181
`matlab-proxy` version `v0.7.0` introduces support for using an existing MATLAB license. Use the Existing License option only if you have an activated MATLAB. This allows you to start MATLAB without authenticating every time.
170
182
171
183
## Limitations
172
-
This package supports the same subset of MATLAB features and commands as MATLAB® Online, except there is no support for Simulink® Online.
173
-
[Click here for a full list of Specifications and Limitations for MATLAB Online](https://www.mathworks.com/products/matlab-online/limitations.html).
184
+
This package supports the same set of MATLAB features and commands as MATLAB® Online. For the full list, see
185
+
[Specifications and Limitations for MATLAB Online](https://www.mathworks.com/products/matlab-online/limitations.html).
186
+
187
+
Simulink Online is supported exclusively on Linux platforms starting from MATLAB R2024b.
174
188
175
189
## Security
176
190
We take your security concerns seriously, and will attempt to address all concerns.
warning=" Unable to find Xvfb on the system PATH. Xvfb enables graphical abilities like plots and figures in the MATLAB desktop.\nConsider adding Xvfb to the system PATH and restart matlab-proxy. See https://github.com/mathworks/matlab-proxy#requirements for information."
278
-
logger.warning(warning)
279
-
settings["warnings"].append(warning)
280
+
ifsystem.is_linux():
281
+
ifnotsettings["is_xvfb_available"]:
282
+
warning=" Unable to find Xvfb on the system PATH. Xvfb enables graphical abilities like plots and figures in the MATLAB desktop.\nConsider adding Xvfb to the system PATH and restart matlab-proxy.\nFor details, see https://github.com/mathworks/matlab-proxy#requirements."
283
+
logger.warning(warning)
284
+
settings["warnings"].append(warning)
285
+
286
+
ifnotsettings["is_windowmanager_available"]:
287
+
warning=" Unable to find fluxbox on the system PATH. To use Simulink Online, add Fluxbox to the system PATH and restart matlab-proxy. For details, see https://github.com/mathworks/matlab-proxy#requirements."
0 commit comments