Skip to main content

Jupyter Server Proxy for MATLAB

Project description

MATLAB Integration for Jupyter

GitHub Workflow Status PyPI badge codecov


The jupyter-matlab-proxy Python® package allows you to integrate MATLAB® with Jupyter®. The MATLAB integration for Jupyter enables you to open a MATLAB desktop in a web browser tab, directly from your Jupyter environment. This is not a kernel integration.

The MATLAB Integration for Jupyter is under active development and you might find issues with the MATLAB graphical user interface. For support or to report issues, see the Feedback section.

Use the MATLAB Integration for Jupyter

Once you have a Jupyter environment with the jupyter-matlab-proxy package installed, to use the integration, follow these steps:

  1. Open your Jupyter environment.

  2. If you are using Jupyter Notebook (on the left in figure below), on the New menu, select MATLAB. If you are using JupyterLab (on the right in figure below), select the MATLAB icon on the launcher.

  1. If prompted to do so, enter credentials for a MathWorks account associated with a MATLAB license. If you are using a network license manager, change to the Network License Manager tab and enter the license server address instead. To determine the appropriate method for your license type, consult MATLAB Licensing Info.

  1. Wait for the MATLAB session to start. This can take several minutes.

  2. To manage the MATLAB integration for Jupyter, click the tools icon shown below.

  1. Clicking the tools icon opens a status panel with buttons like the ones below:

    The following options are available in the status panel (some options are only available in a specific context):

    • Start MATLAB Session — Start your MATLAB session. Available if MATLAB is stopped.
    • Restart MATLAB Session — Restart your MATLAB session. Available if MATLAB is running or starting.
    • Stop MATLAB Session — Stop your MATLAB session. Use this option if you want to free up RAM and CPU resources. Available if MATLAB is running or starting.
    • Sign Out — Sign out of MATLAB. Use this to stop MATLAB and sign in with an alternative account. Available if using online licensing.
    • Unset License Server Address — Unset network license manager server address. Use this to stop MATLAB and enter new licensing information. Available if using network license manager.
    • Feedback — Send feedback about the MATLAB Integration for Jupyter. This action opens your default email application.
    • Help — Open a help pop-up for a detailed description of the options.

Installation

The jupyter-matlab-proxy package requires a Linux® operating system.

If you want to install this package in a Jupyter Docker® image, see Use MATLAB Integration for Jupyter in a Docker Container. Otherwise, if you want to install the jupyter-matlab-proxy package into a preexisting Jupyter environment, follow the instructions below.

To install the jupyter-matlab-proxy package, follow these steps in your Jupyter environment on a Linux OS:

  1. Install a MATLAB 64 bit Linux version. Make sure the the installation folder is on the system path. This integration supports MATLAB R2020b or later. For earlier versions, use the alternative MATLAB Integration for Jupyter using VNC.
  2. Install software packages that MATLAB depends on and software packages that this integration depends on. For a list of required software packages in a Debian based distribution, inspect this Dockerfile.
  3. Install Node and Node Package Manager version 13 or higher.
  4. Install the jupyter-matlab-proxy package by executing:
python -m pip install jupyter-matlab-proxy

If you want to use this integration with JupyterLab®, ensure that you have JupyterLab installed on your machine by running the following command:

python -m pip install jupyterlab

You should then install jupyterlab-server-proxy JupyterLab extension. To install the extension, use the following command:

jupyter labextension install @jupyterlab/server-proxy

For more information see GUI Launchers.

Limitations

This package supports the same subset of MATLAB features and commands as MATLAB Online. For a full list supported products and limitations, see Specifications and Limitations. For a list of browser requirements, see Cloud Solutions Browser Requirements. If you need to use functionality that is not yet supported, you can leverage the alternative MATLAB Integration for Jupyter using VNC.

Integration with JupyterHub

If you want to use this integration with JupyterHub®, then you must 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, then install this package in the Docker image used to launch them. You can find a reference architecture that installs the jupyter-matlab-proxy Python package in a Docker image in the repository Use MATLAB Integration for Jupyter in a Docker Container.

Feedback

We encourage you to try this repository with your environment and provide feedback – the technical team is monitoring this repository. If you encounter a technical issue or have an enhancement request, send an email to jupyter-support@mathworks.com.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jupyter-matlab-proxy-0.3.4.tar.gz (732.6 kB view details)

Uploaded Source

Built Distribution

jupyter_matlab_proxy-0.3.4-py3-none-any.whl (902.5 kB view details)

Uploaded Python 3

File details

Details for the file jupyter-matlab-proxy-0.3.4.tar.gz.

File metadata

  • Download URL: jupyter-matlab-proxy-0.3.4.tar.gz
  • Upload date:
  • Size: 732.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for jupyter-matlab-proxy-0.3.4.tar.gz
Algorithm Hash digest
SHA256 05235c77aadf6ffb2b7193f6c6e4962eff68e4e5908370525363180d81bf9348
MD5 1c8c6421d0f39a77168cd80b1dac0b89
BLAKE2b-256 65bb6bc2f6115f161e96af2c2bd332a159f8570342e48984a26732067c225b76

See more details on using hashes here.

Provenance

File details

Details for the file jupyter_matlab_proxy-0.3.4-py3-none-any.whl.

File metadata

  • Download URL: jupyter_matlab_proxy-0.3.4-py3-none-any.whl
  • Upload date:
  • Size: 902.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for jupyter_matlab_proxy-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1277ca02602fe96f83b8b024dd24a9b2938024511011817fba46040193a24e51
MD5 097baa91827e02d3f6cddce2cdde58c5
BLAKE2b-256 284049f88c2360125e55036f5e75f58793a0a3b5a2e83c8336fc8d4371528da8

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page