-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdevcontainer.json
More file actions
75 lines (75 loc) · 2.59 KB
/
devcontainer.json
File metadata and controls
75 lines (75 loc) · 2.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
/* This DevContainer configuration demonstrates
1. Building image using Dev Container Features
2. Installation of MATLAB Integration for Jupyter & JupyterLab
3. Configuration of VSCode environment for following modes of access:
a. MATLAB in a Browser
b. Directly from VSCode, using the MATLAB extension for VSCode
c. Using Jupyter Notebooks in VSCode
d. Start Codespace in Jupyter
See: https://containers.dev/implementors/features/
*/
"name": "Built using Dev Container Features",
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
"features": {
"ghcr.io/mathworks/devcontainer-features/matlab": {
// For more options, See: https://github.com/mathworks/devcontainer-features/tree/main/src/matlab
"release": "r2025b",
"products": "MATLAB Symbolic_Math_Toolbox Simulink",
"installMatlabProxy": "true",
"startInDesktop": "true",
"installJupyterMatlabProxy": true,
"installJupyterLab": true,
"installMatlabEngineForPython": true
},
"ghcr.io/devcontainers/features/python": {
"version": "os-provided"
// Cannot use the Python feature to install JupyterLab because of:
// https://github.com/devcontainers/features/issues/1403
// "installJupyterlab": true,
// "configureJupyterlabAllowOrigin": "*"
}
},
"onCreateCommand": {
"install-dependencies": "sudo apt-get update && sudo apt-get install --no-install-recommends -y git fluxbox"
},
"portsAttributes": {
"8888": {
"label": "MATLAB",
"onAutoForward": "openPreview"
}
},
"containerEnv": {
"MWI_APP_PORT": "8888",
"MWI_ENABLE_TOKEN_AUTH": "False",
// Configure MATLAB's startup folder
"MATLAB_USERWORKDIR": "${containerWorkspaceFolder}",
"MATLAB_USE_USERWORK": "1",
// Enable embedding the desktop into VSCode's Simple Browser
"MWI_CUSTOM_HTTP_HEADERS": "{\"Content-Security-Policy\": \"frame-ancestors *\"}",
"MW_DDUX_FORCE_ENABLE": "true",
"MW_CONTEXT_TAGS": "MATLAB:CODESPACES:V1"
},
// Configure VSCode Extensions
"customizations": {
"vscode": {
"extensions": [
"MathWorks.language-matlab",
"ms-toolsai.jupyter",
"ms-python.python"
],
"settings": {
"MATLAB.signIn": true,
// Marks MATLAB Kernel as a trusted source
"jupyter.kernels.trusted": [
"/usr/share/jupyter/kernels/jupyter_matlab_kernel/kernel.json"
]
}
}
},
"hostRequirements": {
"cpus": 4
},
// Need to specify a user to use the startInDesktop feature.
"containerUser": "vscode"
}