Skip to content

Latest commit

 

History

History
48 lines (30 loc) · 1.74 KB

troubleshooting.md

File metadata and controls

48 lines (30 loc) · 1.74 KB

Troubleshooting guide for MATLAB Integration for Jupyter

This folder contains troubleshooting.py, a Python script that checks your environment for the dependencies required to run MATLAB Integration for Jupyter. The script prints the results in your terminal.

Table of Contents

  1. Requirements
  2. Run Troubleshooting Script
  3. Enable Logging

Requirements

  • Python

Run Troubleshooting Script

Ensure the Python executable you use to run the troubleshooting script is in the same environment where you want to use the integration.

Run the troubleshooting script:

$ curl https://raw.githubusercontent.com/mathworks/jupyter-matlab-proxy/main/troubleshooting/troubleshooting.py | python -

If your platform does not support curl, download troubleshooting.py and run it:

$ python troubleshooting.py

Enable Logging

You can use logs to assist debugging when using MATLAB Integration for Jupyter. Set the environment variable MWI_JUPYTER_LOG_LEVEL to one of the following: NOTSET, DEBUG, INFO, WARN, ERROR, or CRITICAL. The default value is INFO. For more information on Python log levels, see Logging Levels (Python).

To set the environment variable, use the appropriate command for your environment. For example, in Linux, use the following:

# Set the logging environment variable
$ export MWI_JUPYTER_LOG_LEVEL="DEBUG"

# Start Jupyter
$ jupyter lab

Copyright 2023-2024 The MathWorks, Inc.