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
If you make any changes to either the JavaScript code or the Python code, then these apps will reload immediately showing the results. Bear in mind that this kind of live-reloading can have an impact on application state (on the serverside particularly). This occurs independently for the JavaScript and Python applications. So if you are working only on the frontend, the backend state will never be affected by changes to the frontend and vice-versa.
Copy file name to clipboardExpand all lines: README.md
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -90,22 +90,22 @@ If you want to use this integration with JupyterHub®, then you must install the
90
90
91
91
### Environment Variables
92
92
93
-
To control the behavior of the MATLAB integration for Jupyter, you can optionally specify the environment variables described in this section. You must specify these variables before starting your Jupyter environment. For example, specify the variable `APP_PORT` to be equal to 8888 when you start the Jupyter notebook using the command below:
93
+
To control the behavior of the MATLAB integration for Jupyter, you can optionally specify the environment variables described in this section. You must specify these variables before starting your Jupyter environment. For example, specify the variable `MWI_APP_PORT` to be equal to 8888 when you start the Jupyter notebook using the command below:
94
94
95
95
```bash
96
-
env APP_PORT=8888 jupyter notebook
96
+
env MWI_APP_PORT=8888 jupyter notebook
97
97
```
98
98
**MARKDOWN TABLE**
99
99
100
100
These values are preset for you when you access the integration from the Jupyter console.
101
101
| Name | Type | Example Value | Description |
102
102
| ---- | ---- | ------------- | ----------- |
103
103
|**MLM_LICENSE_FILE**| string |`"[email protected]"`| When you want to use either a license file or a network license manager to license MATLAB, specify this variable.</br> For example, specify the location of the network license manager to be `123@hostname`|
104
-
|**LOG_LEVEL**| string |`"CRITICAL"`| Specify the Python log level to be one of the following `NOTSET`, `DEBUG`, `INFO`, `WARN`, `ERROR`, or `CRITICAL`. For more information on Python log levels, see [Logging Levels](https://docs.python.org/3/library/logging.html#logging-levels) .<br />The default value is `INFO`. |
105
-
|**LOG_FILE**| string |`"/tmp/logs.txt"`| Specify the full path to the file where you want the logs to be written. |
106
-
|**BASE_URL**| string |`"/matlab"`| Set to control the base URL of the app. BASE_URL should start with `/` or be `empty`. |
107
-
|**APP_PORT**| integer |`8080`| Specify the port for the HTTP server to listen on. |
108
-
|**CUSTOM_HTTP_HEADERS**| string |`'{"Content-Security-Policy": "frame-ancestors *.example.com:*"}'`<br /> OR <br />`"/path/to/your/custom/http-headers.json"`|Specify valid HTTP headers as JSON data in a string format<br />OR <br /> Specify the full path to the JSON file containing (valid) HTTP headers. These headers would be injected into the HTTP response sent to the browser. </br> For more information, see the CUSTOM_HTTP_HEADERS sub-section in the Advanced Usage section. |
104
+
|**MWI_LOG_LEVEL**| string |`"CRITICAL"`| Specify the Python log level to be one of the following `NOTSET`, `DEBUG`, `INFO`, `WARN`, `ERROR`, or `CRITICAL`. For more information on Python log levels, see [Logging Levels](https://docs.python.org/3/library/logging.html#logging-levels) .<br />The default value is `INFO`. |
105
+
|**MWI_LOG_FILE**| string |`"/tmp/logs.txt"`| Specify the full path to the file where you want the logs to be written. |
106
+
|**MWI_BASE_URL**| string |`"/matlab"`| Set to control the base URL of the app. MWI_BASE_URL should start with `/` or be `empty`. |
107
+
|**MWI_APP_PORT**| integer |`8080`| Specify the port for the HTTP server to listen on. |
108
+
|**MWI_CUSTOM_HTTP_HEADERS**| string |`'{"Content-Security-Policy": "frame-ancestors *.example.com:*"}'`<br /> OR <br />`"/path/to/your/custom/http-headers.json"`|Specify valid HTTP headers as JSON data in a string format<br />OR <br /> Specify the full path to the JSON file containing (valid) HTTP headers. These headers would be injected into the HTTP response sent to the browser. </br> For more information, see the MWI_CUSTOM_HTTP_HEADERS sub-section in the Advanced Usage section. |
109
109
110
110
111
111
## Feedback
@@ -115,7 +115,7 @@ We encourage you to try this repository with your environment and provide feedba
115
115
116
116
## Advanced Usage
117
117
118
-
#### CUSTOM_HTTP_HEADERS:
118
+
#### MWI_CUSTOM_HTTP_HEADERS:
119
119
If the browser renders the MATLAB Integration for Jupyter with some other content, then web browsers could block the integration because of mismatch of `Content-Security-Policy` header in the response headers from the integration.
120
120
121
121
To avoid this, providing custom HTTP headers allow browsers to load the content.
@@ -131,7 +131,7 @@ If this integration is rendered along with some other content on the domain `www
131
131
or if you are passing the custom http headers as a string in the environment variable. In bash shell, it could look like :
0 commit comments