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
-[Features of MATLAB Integration _for Jupyter_](#features-of-matlab-integration-for-jupyter)
14
+
-[Requirements](#requirements)
15
+
-[Install](#install)
16
+
-[Install from PyPI](#install-from-pypi)
17
+
-[Build from Source](#build-from-source)
18
+
-[Using JupyterHub](#using-jupyterhub)
19
+
-[Using JupyterHub and The Littlest JupyterHub](#using-jupyterhub-and-the-littlest-jupyterhub)
20
+
-[Using Simulink](#using-simulink)
21
+
-[Troubleshooting](#troubleshooting)
22
+
-[Get Started](#get-started)
23
+
-[Run MATLAB Code in a Jupyter Notebook](#run-matlab-code-in-a-jupyter-notebook)
24
+
-[Notes](#notes)
25
+
-[Open MATLAB in a Browser](#open-matlab-in-a-browser)
26
+
-[Edit MATLAB Files in JupyterLab](#edit-matlab-files-in-jupyterlab)
27
+
-[Limitations](#limitations)
19
28
20
29
21
30
## Features of MATLAB Integration _for Jupyter_
@@ -81,9 +90,12 @@ python -m pip install .
81
90
```
82
91
83
92
### Using JupyterHub
93
+
### Using JupyterHub and The Littlest JupyterHub
84
94
85
95
To use MATLAB with JupyterHub, install the `jupyter-matlab-proxy` Python package in the Jupyter environment launched by your JupyterHub platform. For example, if your JupyterHub platform launches Docker containers, install this package in the Docker image used to launch those containers, using the instructions for [Using MATLAB Integration _for Jupyter_ in a Docker Container](https://github.com/mathworks-ref-arch/matlab-integration-for-jupyter/tree/main/matlab).
86
96
97
+
To use MATLAB with [The Littlest JupyterHub (TLJH)](https://tljh.jupyter.org/en/stable/index.html#), see [MATLAB Integration for Jupyter on The Littlest JupyterHub](https://github.com/mathworks/jupyter-matlab-proxy/jupyter-matlab-proxy/install_guides/the-littlest-jupyterhub/README.md). You might use this if you want to set up JupyterHub on a single server for a small number of users, such as students in a class.
98
+
87
99
### Using Simulink
88
100
89
101
This package lets you use Simulink® programmatically by entering commands in a Jupyter notebook. To view a model or use other Simulink features that require the Simulink UI, you can use a VNC to connect your Jupyter environment to a Linux desktop where you have MATLAB and Simulink installed. For instructions, see [MATLAB Jupyter VNC Solution](https://github.com/mathworks/jupyter-matlab-vnc-proxy).
# MATLAB Integration for Jupyter on The Littlest JupyterHub
2
+
3
+
This guide shows how to set up MATLAB and the [MATLAB Integration for Jupyter](https://github.com/mathworks/jupyter-matlab-proxy) on the [The Littlest JupyterHub (TLJH)](https://tljh.jupyter.org/en/stable/index.html#). You might use this if you want to set up JupyterHub on a single server for a small number of users, such as students in a class.
4
+
5
+
6
+
## Set up TLJH
7
+
8
+
The [TLJH Documentation](https://tljh.jupyter.org/en/stable/install/index.html) contains instructions for installing TLJH in different environments.
9
+
10
+
Once you have a working TLJH stack, you can add MATLAB into your TLJH stack using the MATLAB Plugin for The Littlest JupyterHub.
11
+
12
+
## Add MATLAB to TLJH Installation
13
+
This repository contains `tljh-matlab`, the [MATLAB Plugin for The Littlest JupyterHub](https://github.com/mathworks/jupyter-matlab-proxy/jupyter-matlab-proxy/install_guides/the-littlest-jupyterhub/tljh-matlab/README.md).
14
+
15
+
Use the plugin to install MATLAB, its dependencies, and the MATLAB integration for Jupyter in TLJH.
16
+
17
+
To install the MATLAB plugin, run the `bootstrap` script from your TLJH installation process again, and add the `tljh-matlab` plugin:
18
+
19
+
```bash
20
+
curl -L https://tljh.jupyter.org/bootstrap.py \
21
+
| sudo python3 - \
22
+
--plugin tljh-matlab
23
+
```
24
+
25
+
For more information on installing plugins into a TLJH environment, see [Customizing the Installer *(TLJH Docs)*](https://tljh.jupyter.org/en/latest/topic/customizing-installer.html#customizing-the-installer).
26
+
27
+
To customize the MATLAB plugin, for example to choose which MATLAB toolboxes to install, see [MATLAB Plugin for The Littlest JupyterHub](https://github.com/mathworks/jupyter-matlab-proxy/tree/main/install_guides/the-littlest-jupyterhub/tljh-matlab/README.md).
28
+
29
+
## Setting Up TLJH with MATLAB in Docker: Quick Demo
30
+
31
+
Execute the [start-container-with-tljh-matlab.sh](./start-container-with-tljh-matlab.sh) script to efficiently set up a sample TLJH environment with MATLAB & The MATLAB Integration for Jupyter installed within a Docker container.
32
+
33
+
```bash
34
+
./start-container-with-tljh-matlab.sh
35
+
```
36
+
37
+
Once initialized, your JupyterHub server will be accessible for notebook hosting at **http://Your-FQDN:12000**. You can view it in your browser via **http://localhost:12000/**.
38
+
39
+
To tailor the MATLAB release or to install different MATLAB toolboxes within the TLJH instance, adjust the environment variables in the [.matlab_env](./.matlab_env) file accordingly.
40
+
41
+
## Learn More
42
+
43
+
-[The Littlest JupyterHub Official Documentation (TLJH)](https://tljh.jupyter.org/en/stable/index.html).
44
+
-[When to Use the Littlest JupyterHub (TLJH)](https://tljh.jupyter.org/en/stable/topic/whentouse.html).
0 commit comments