Skip to content

MATLAB Kernel cannot start MATLAB Proxy Manager on M1 Mac. #110

@krsanta

Description

@krsanta

Summary

Hello,

I am trying to use jupyter-matlab-proxy to run MATLAB code in Jupyter notebooks on an M1 Mac running Sonoma 14.7.2. I have followed the following steps in the README file for the mathworks/jupyter-matlab-proxy repository:

  1. Added MATLAB 2024b to my system path.
  2. Created a new conda environment using miniforge with Python 3.11 (I use miniforge instead of miniconda to make sure that the version of Python being installed in my environment using arm64 binaries).
  3. Activating my new environment and running python -m pip install jupyter-matlab-proxy followed by install-matlab-kernelspec
  4. Installing Jupyter notebook to the same environment via `python -m pip install notebook'

I then invoke jupyter notebook and open up an existing notebook. I make sure that I'm connected to MATLAB Kernel and I open up a new cell to run a simple MATLAB command: `x=2'. I then get the following error:

Error: MATLAB Kernel could not start the MATLAB proxy process via proxy manager

Any help with this is greatly appreciated!

Browser(s) used

Chrome

Issue found in

MATLAB Kernel

Script output

`% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 15128 100 15128 0 0 12304 0 0:00:01 0:00:01 --:--:-- 12309


                                 MATLAB                                     

matlab - /Applications/MATLAB_R2024b.app/bin/matlab OK


                            matlab-proxy-app                                

matlab-proxy-app - /Users/ks1044374/miniforge3/envs/m1_matlab/bin/matlab-proxy-app OK


                                Jupyter                                     

jupyter - /Users/ks1044374/miniforge3/envs/m1_matlab/bin/jupyter OK


                       Python and pip executables                           

python - /Users/ks1044374/miniforge3/envs/m1_matlab/bin/python OK

Python 3.11.11

pip - /Users/ks1044374/miniforge3/envs/m1_matlab/bin/pip OK

pip 24.3.1 from /Users/ks1044374/miniforge3/envs/m1_matlab/lib/python3.11/site-packages/pip (python 3.11)

python3 - /Users/ks1044374/miniforge3/envs/m1_matlab/bin/python3 OK

Python 3.11.11


                             OS information                                 

Darwin
23.6.0
macOS-14.7.2-arm64-arm-64bit
uname_result(system='Darwin', node='AMER-D9DGC9T6VJ', release='23.6.0', version='Darwin Kernel Version 23.6.0: Fri Nov 15 15:13:15 PST 2024; root:xnu-10063.141.1.702.7~1/RELEASE_ARM64_T6000', machine='arm64')


                           Conda information                                

conda - /Users/ks1044374/miniforge3/condabin/conda

conda 22.11.1


                           Installed packages                               

jupyter_client 8.6.3
jupyter_core 5.7.2
jupyter-events 0.11.0
jupyter-lsp 2.2.5
jupyter-matlab-proxy 0.16.2
jupyter_server 2.15.0
jupyter_server_proxy 4.4.0
jupyter_server_terminals 0.5.3
jupyterlab 4.3.4
jupyterlab_pygments 0.3.0
jupyterlab_server 2.27.3
matlab-proxy 0.23.4
notebook 7.3.2
notebook_shim 0.2.4DEPRECATION: Loading egg at /Users/ks1044374/miniforge3/envs/m1_matlab/lib/python3.11/site-packages/matlabengine-24.2-py3.11.egg is deprecated. pip 25.1 will enforce this behaviour change. A possible replacement is to use pip for package installation. Discussion can be found at pypa/pip#12330


                       Jupyter server extensions                            

Config dir: /Users/ks1044374/.jupyter
Config dir: /Users/ks1044374/miniforge3/envs/m1_matlab/etc/jupyter
jupyter_lsp enabled
- Validating jupyter_lsp...
jupyter_lsp 2.2.5 OK
jupyter_server_proxy enabled
- Validating jupyter_server_proxy...
jupyter_server_proxy 4.4.0 OK
jupyter_server_terminals enabled
- Validating jupyter_server_terminals...
jupyter_server_terminals 0.5.3 OK
jupyterlab enabled
- Validating jupyterlab...
jupyterlab 4.3.4 OK
notebook enabled
- Validating notebook...
notebook 7.3.2 OK
notebook_shim enabled
- Validating notebook_shim...
notebook_shim OK
Config dir: /usr/local/etc/jupyterExtension package jupyter_lsp took 0.1088s to import
Extension package jupyter_server_proxy took 0.2823s to import
Extension package jupyterlab took 0.2027s to import

JupyterLab v4.3.4
/Users/ks1044374/miniforge3/envs/m1_matlab/share/jupyter/labextensions
jupyter_matlab_labextension v1.0.0 enabled OK (python, jupyter_matlab_labextension)
jupyterlab_pygments v0.3.0 enabled OK (python, jupyterlab_pygments)
@jupyterhub/jupyter-server-proxy v4.4.0 enabled OK
@jupyter-notebook/lab-extension v7.3.2 enabled OK


                         Environment variables                              

Activity

prabhakk-mw

prabhakk-mw commented on Jan 22, 2025

@prabhakk-mw
Member

Hi @krsanta

Could you please share the logs that were printed onto the terminal from which you spawned jupyter notebook ?
Also, could you try the same experiment from jupyter lab instead? You will have to install it using python -m pip install jupyterlab.

Thank you!

self-assigned this
on Jan 22, 2025
krsanta

krsanta commented on Jan 22, 2025

@krsanta
Author

Hi @krsanta

Could you please share the logs that were printed onto the terminal from which you spawned jupyter notebook ? Also, could you try the same experiment from jupyter lab instead? You will have to install it using python -m pip install jupyterlab.

Thank you!

Sure, here's the output from running jupyter notebook and then trying to run the command x=2. Note that it ends by opening up a command-line session of MATLAB in the terminal. I'll try jupyterlab and report the output from that too.

Thank you!

(m1_matlab) ks1044374@AMER-D9DGC9T6VJ ~ % jupyter notebook &
[1] 44523
(m1_matlab) ks1044374@AMER-D9DGC9T6VJ ~ % [I 2025-01-22 15:13:29.763 ServerApp] Extension package jupyter_server_proxy took 0.3011s to import
[I 2025-01-22 15:13:29.965 ServerApp] jupyter_lsp | extension was successfully linked.
[I 2025-01-22 15:13:29.966 ServerApp] jupyter_server_proxy | extension was successfully linked.
[I 2025-01-22 15:13:29.970 ServerApp] jupyter_server_terminals | extension was successfully linked.
[I 2025-01-22 15:13:29.974 ServerApp] jupyterlab | extension was successfully linked.
[I 2025-01-22 15:13:29.977 ServerApp] notebook | extension was successfully linked.
[I 2025-01-22 15:13:31.261 ServerApp] notebook_shim | extension was successfully linked.
[I 2025-01-22 15:13:31.319 ServerApp] notebook_shim | extension was successfully loaded.
[I 2025-01-22 15:13:31.321 ServerApp] jupyter_lsp | extension was successfully loaded.
INFO:MATLABProxyApp:Initializing Jupyter MATLAB Proxy
[I 2025-01-22 15:13:31.396 ServerApp] jupyter_server_proxy | extension was successfully loaded.
[I 2025-01-22 15:13:31.396 ServerApp] jupyter_server_terminals | extension was successfully loaded.
[I 2025-01-22 15:13:31.400 LabApp] JupyterLab extension loaded from /Users/ks1044374/miniforge3/envs/m1_matlab/lib/python3.11/site-packages/jupyterlab
[I 2025-01-22 15:13:31.400 LabApp] JupyterLab application directory is /Users/ks1044374/miniforge3/envs/m1_matlab/share/jupyter/lab
[I 2025-01-22 15:13:31.401 LabApp] Extension Manager is 'pypi'.
[I 2025-01-22 15:13:31.469 ServerApp] jupyterlab | extension was successfully loaded.
[I 2025-01-22 15:13:31.475 ServerApp] notebook | extension was successfully loaded.
[I 2025-01-22 15:13:31.476 ServerApp] The port 8888 is already in use, trying another port.
[I 2025-01-22 15:13:31.476 ServerApp] Serving notebooks from local directory: /Users/ks1044374
[I 2025-01-22 15:13:31.476 ServerApp] Jupyter Server 2.15.0 is running at:
[I 2025-01-22 15:13:31.476 ServerApp] http://localhost:8889/tree?token=815b84bff6a63cf55ed66f405013d06533fb833f659cc8dd
[I 2025-01-22 15:13:31.476 ServerApp] http://127.0.0.1:8889/tree?token=815b84bff6a63cf55ed66f405013d06533fb833f659cc8dd
[I 2025-01-22 15:13:31.477 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 2025-01-22 15:13:31.491 ServerApp]

To access the server, open this file in a browser:
    file:///Users/ks1044374/Library/Jupyter/runtime/jpserver-44523-open.html
Or copy and paste one of these URLs:
    http://localhost:8889/tree?token=815b84bff6a63cf55ed66f405013d06533fb833f659cc8dd
    http://127.0.0.1:8889/tree?token=815b84bff6a63cf55ed66f405013d06533fb833f659cc8dd

[I 2025-01-22 15:13:31.542 ServerApp] Skipped non-installed server(s): bash-language-server, dockerfile-language-server-nodejs, javascript-typescript-langserver, jedi-language-server, julia-language-server, pyright, python-language-server, python-lsp-server, r-languageserver, sql-language-server, texlab, typescript-language-server, unified-language-server, vscode-css-languageserver-bin, vscode-html-languageserver-bin, vscode-json-languageserver-bin, yaml-language-server
[I 2025-01-22 15:13:43.212 ServerApp] Kernel started: aa65b4cb-2540-444f-adf8-2a47b24685e5
INFO:MATLABKernel:Initializing logger with log_level: INFO
INFO:MATLABKernel:Starting the kernel at pid: 44537
INFO:MATLABKernel:To connect another client to this kernel, use:
INFO:MATLABKernel: --existing kernel-aa65b4cb-2540-444f-adf8-2a47b24685e5.json
[I 2025-01-22 15:13:45.286 ServerApp] Connecting to kernel aa65b4cb-2540-444f-adf8-2a47b24685e5.
[I 2025-01-22 15:13:45.288 ServerApp] Connecting to kernel aa65b4cb-2540-444f-adf8-2a47b24685e5.
[I 2025-01-22 15:13:45.300 ServerApp] Connecting to kernel aa65b4cb-2540-444f-adf8-2a47b24685e5.
[I 2025-01-22 15:13:45.306 ServerApp] Connecting to kernel aa65b4cb-2540-444f-adf8-2a47b24685e5.
[W 2025-01-22 15:13:45.309 ServerApp] Got events for closed stream <zmq.eventloop.zmqstream.ZMQStream object at 0x1189c6c10>
[W 2025-01-22 15:13:45.325 ServerApp] Got events for closed stream <zmq.eventloop.zmqstream.ZMQStream object at 0x118b5c350>
WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=2, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x10cb77c90>: Failed to establish a new connection: [Errno 61] Connection refused')': /matlab/default
WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=2, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x10cb80410>: Failed to establish a new connection: [Errno 61] Connection refused')': /matlab/default
ERROR:MATLABProxyManager:matlab-proxy server never became ready
ERROR:MATLABKernel.aa65b4cb-2540-444f-adf8-2a47b24685e5:MATLAB Kernel could not start matlab-proxy using proxy manager with error: 'NoneType' object has no attribute 'get'
ERROR:MATLABKernel.aa65b4cb-2540-444f-adf8-2a47b24685e5:Found a startup error:
Error: MATLAB Kernel could not start the MATLAB proxy process via proxy manager.

ERROR:MATLABKernel.aa65b4cb-2540-444f-adf8-2a47b24685e5:Exception occurred while processing execution request:

            Error: MATLAB Kernel could not start the MATLAB proxy process via proxy manager.

INFO:MATLABProxyApp:Setting no_proxy to: 0.0.0.0,localhost,127.0.0.1
INFO:MATLABProxyApp:Found MATLAB executable at: /Applications/MATLAB_R2024b.app/bin/matlab
INFO:MATLABProxyApp:Using 600 seconds as the default timeout value
INFO:MATLABProxyApp:

Access MATLAB at:
http://localhost:63999/matlab/default?mwi-auth-token=9fE5hNhAGoZ3NKvT4IsdkHaYEF1tlXRWUeLZsFH53BY

INFO:MATLABProxyApp:Stopped (any running) MATLAB process.
Option -softwareopengl does not apply on MAC.
[I 2025-01-22 15:15:42.804 ServerApp] Saving file at /Documents/ANR/Zuko/4.0--New-Filter-Design-Idea-Min-Phase--(1-15-25).ipynb

                        < M A T L A B (R) >
              Copyright 1984-2024 The MathWorks, Inc.
          R2024b Update 3 (24.2.0.2806996) 64-bit (maca64)
                         November 26, 2024

Warning: Unrecognized command line option: softwareopengl.

To get started, type doc.
For product information, visit www.mathworks.com.

figure - Create figure window
This MATLAB function creates a new figure window using default property
values.

Syntax
  <strong>figure</strong>
  <strong>figure</strong>(Name,Value)
  f = <strong>figure</strong>(___)

  <strong>figure</strong>(f)
  <strong>figure</strong>(n)

Input Arguments
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#buich1u-1-f">f</a> - Target figure
    Figure object
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#buich1u-1-n">n</a> - Target figure number
    scalar integer value

Name-Value Arguments
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#buich1u-1_sep_shared-Name">Name</a> - Name
    '' (default) | character vector | string scalar
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#buich1u-1_sep_shared-Color">Color</a> - Background color
    RGB triplet | hexadecimal color code | 'r' | 'g' | 'b' | ...
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#buich1u-1_sep_shared-Position">Position</a> - Location and size of drawable area
    [left bottom width height]
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#buich1u-1_sep_shared-Units">Units</a> - Units of measurement
    'pixels' (default) | 'normalized' | 'inches' | 'centimeters' |
    'points' | 'characters'

Examples
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#mw_e279e63f-1641-4b14-a781-c5facd020190">Change Figure Size</a>
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#bvjs6el-1">Specify Figure Title</a>
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#bvjs6ew-1">Working with Multiple Figures Simultaneously</a>

See also <a href="matlab:help axes -displayBanner">axes</a>, <a href="matlab:help gcf -displayBanner">gcf</a>, <a href="matlab:help gca -displayBanner">gca</a>, <a href="matlab:help clf -displayBanner">clf</a>, <a href="matlab:help cla -displayBanner">cla</a>, <a href="matlab:help shg -displayBanner">shg</a>, <a href="matlab:help matlab.ui.Figure -displayBanner">Figure</a>

Introduced in MATLAB before R2006a
<a href="matlab:doc figure">Documentation for figure</a>

Your HTML rendering engine is now set to 'textonly'.

krsanta

krsanta commented on Jan 22, 2025

@krsanta
Author

When I invoke jupyter lab, open the same notebook and try to execute x=2 block, I get the exact same error. Terminal output below:

% jupyter lab &
[1] 44810
(m1_matlab) ks1044374@AMER-D9DGC9T6VJ ~ % [I 2025-01-22 15:19:39.282 ServerApp] jupyter_lsp | extension was successfully linked.
[I 2025-01-22 15:19:39.283 ServerApp] jupyter_server_proxy | extension was successfully linked.
[I 2025-01-22 15:19:39.288 ServerApp] jupyter_server_terminals | extension was successfully linked.
[I 2025-01-22 15:19:39.292 ServerApp] jupyterlab | extension was successfully linked.
[I 2025-01-22 15:19:39.296 ServerApp] notebook | extension was successfully linked.
[I 2025-01-22 15:19:40.586 ServerApp] notebook_shim | extension was successfully linked.
[I 2025-01-22 15:19:40.680 ServerApp] notebook_shim | extension was successfully loaded.
[I 2025-01-22 15:19:40.682 ServerApp] jupyter_lsp | extension was successfully loaded.
INFO:MATLABProxyApp:Initializing Jupyter MATLAB Proxy
[I 2025-01-22 15:19:40.780 ServerApp] jupyter_server_proxy | extension was successfully loaded.
[I 2025-01-22 15:19:40.781 ServerApp] jupyter_server_terminals | extension was successfully loaded.
[I 2025-01-22 15:19:40.788 LabApp] JupyterLab extension loaded from /Users/ks1044374/miniforge3/envs/m1_matlab/lib/python3.11/site-packages/jupyterlab
[I 2025-01-22 15:19:40.788 LabApp] JupyterLab application directory is /Users/ks1044374/miniforge3/envs/m1_matlab/share/jupyter/lab
[I 2025-01-22 15:19:40.789 LabApp] Extension Manager is 'pypi'.
[I 2025-01-22 15:19:40.883 ServerApp] jupyterlab | extension was successfully loaded.
[I 2025-01-22 15:19:40.890 ServerApp] notebook | extension was successfully loaded.
[I 2025-01-22 15:19:40.891 ServerApp] The port 8888 is already in use, trying another port.
[I 2025-01-22 15:19:40.892 ServerApp] Serving notebooks from local directory: /Users/ks1044374
[I 2025-01-22 15:19:40.892 ServerApp] Jupyter Server 2.15.0 is running at:
[I 2025-01-22 15:19:40.892 ServerApp] http://localhost:8889/lab?token=4152ccc546485530561f4c4e79667584f602a73fefd551aa
[I 2025-01-22 15:19:40.892 ServerApp] http://127.0.0.1:8889/lab?token=4152ccc546485530561f4c4e79667584f602a73fefd551aa
[I 2025-01-22 15:19:40.892 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 2025-01-22 15:19:40.917 ServerApp]

To access the server, open this file in a browser:
    file:///Users/ks1044374/Library/Jupyter/runtime/jpserver-44810-open.html
Or copy and paste one of these URLs:
    http://localhost:8889/lab?token=4152ccc546485530561f4c4e79667584f602a73fefd551aa
    http://127.0.0.1:8889/lab?token=4152ccc546485530561f4c4e79667584f602a73fefd551aa

[I 2025-01-22 15:19:40.963 ServerApp] Skipped non-installed server(s): bash-language-server, dockerfile-language-server-nodejs, javascript-typescript-langserver, jedi-language-server, julia-language-server, pyright, python-language-server, python-lsp-server, r-languageserver, sql-language-server, texlab, typescript-language-server, unified-language-server, vscode-css-languageserver-bin, vscode-html-languageserver-bin, vscode-json-languageserver-bin, yaml-language-server
[W 2025-01-22 15:19:43.452 LabApp] Could not determine jupyterlab build status without nodejs
[I 2025-01-22 15:20:01.295 ServerApp] Kernel started: 9b84a04e-2e74-4e69-9216-8c4e3d03f4c9
INFO:MATLABKernel:Initializing logger with log_level: INFO
INFO:MATLABKernel:Starting the kernel at pid: 44839
INFO:MATLABKernel:To connect another client to this kernel, use:
INFO:MATLABKernel: --existing kernel-9b84a04e-2e74-4e69-9216-8c4e3d03f4c9.json
[I 2025-01-22 15:20:02.305 ServerApp] Connecting to kernel 9b84a04e-2e74-4e69-9216-8c4e3d03f4c9.
[I 2025-01-22 15:20:02.307 ServerApp] Connecting to kernel 9b84a04e-2e74-4e69-9216-8c4e3d03f4c9.
[I 2025-01-22 15:20:02.317 ServerApp] Connecting to kernel 9b84a04e-2e74-4e69-9216-8c4e3d03f4c9.
WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=2, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x112277090>: Failed to establish a new connection: [Errno 61] Connection refused')': /matlab/default
WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=2, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x112276750>: Failed to establish a new connection: [Errno 61] Connection refused')': /matlab/default
ERROR:MATLABProxyManager:matlab-proxy server never became ready
ERROR:MATLABKernel.9b84a04e-2e74-4e69-9216-8c4e3d03f4c9:MATLAB Kernel could not start matlab-proxy using proxy manager with error: 'NoneType' object has no attribute 'get'
ERROR:MATLABKernel.9b84a04e-2e74-4e69-9216-8c4e3d03f4c9:Found a startup error:
Error: MATLAB Kernel could not start the MATLAB proxy process via proxy manager.

ERROR:MATLABKernel.9b84a04e-2e74-4e69-9216-8c4e3d03f4c9:Exception occurred while processing execution request:

            Error: MATLAB Kernel could not start the MATLAB proxy process via proxy manager.

INFO:MATLABProxyApp:Setting no_proxy to: 0.0.0.0,localhost,127.0.0.1
INFO:MATLABProxyApp:Found MATLAB executable at: /Applications/MATLAB_R2024b.app/bin/matlab
INFO:MATLABProxyApp:Using 600 seconds as the default timeout value
INFO:MATLABProxyApp:

Access MATLAB at:
http://localhost:64593/matlab/default?mwi-auth-token=b4hUSYxuo0oyiz2uiYFJHsWsbUHj0HzbtQScMjyN1SY

INFO:MATLABProxyApp:Stopped (any running) MATLAB process.
Option -softwareopengl does not apply on MAC.

                        < M A T L A B (R) >
              Copyright 1984-2024 The MathWorks, Inc.
          R2024b Update 3 (24.2.0.2806996) 64-bit (maca64)
                         November 26, 2024

Warning: Unrecognized command line option: softwareopengl.

To get started, type doc.
For product information, visit www.mathworks.com.

figure - Create figure window
This MATLAB function creates a new figure window using default property
values.

Syntax
  <strong>figure</strong>
  <strong>figure</strong>(Name,Value)
  f = <strong>figure</strong>(___)

  <strong>figure</strong>(f)
  <strong>figure</strong>(n)

Input Arguments
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#buich1u-1-f">f</a> - Target figure
    Figure object
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#buich1u-1-n">n</a> - Target figure number
    scalar integer value

Name-Value Arguments
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#buich1u-1_sep_shared-Name">Name</a> - Name
    '' (default) | character vector | string scalar
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#buich1u-1_sep_shared-Color">Color</a> - Background color
    RGB triplet | hexadecimal color code | 'r' | 'g' | 'b' | ...
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#buich1u-1_sep_shared-Position">Position</a> - Location and size of drawable area
    [left bottom width height]
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#buich1u-1_sep_shared-Units">Units</a> - Units of measurement
    'pixels' (default) | 'normalized' | 'inches' | 'centimeters' |
    'points' | 'characters'

Examples
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#mw_e279e63f-1641-4b14-a781-c5facd020190">Change Figure Size</a>
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#bvjs6el-1">Specify Figure Title</a>
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#bvjs6ew-1">Working with Multiple Figures Simultaneously</a>

See also <a href="matlab:help axes -displayBanner">axes</a>, <a href="matlab:help gcf -displayBanner">gcf</a>, <a href="matlab:help gca -displayBanner">gca</a>, <a href="matlab:help clf -displayBanner">clf</a>, <a href="matlab:help cla -displayBanner">cla</a>, <a href="matlab:help shg -displayBanner">shg</a>, <a href="matlab:help matlab.ui.Figure -displayBanner">Figure</a>

Introduced in MATLAB before R2006a
<a href="matlab:doc figure">Documentation for figure</a>

Your HTML rendering engine is now set to 'textonly'.

prabhakk-mw

prabhakk-mw commented on Jan 22, 2025

@prabhakk-mw
Member

Perfect, thank you!
Will continue investigating and report back...

krisctl

krisctl commented on Jan 23, 2025

@krisctl
Member

Dear @krsanta, thank you for bringing this issue to our attention.

Can you please enable debug logs and share the logs from the terminal? The way to enable debug logs would be to set below environment variable on your terminal from where you are starting jupyter lab or notebook.

export MWI_MPM_LOG_LEVEL="DEBUG"

Thanks!

krsanta

krsanta commented on Jan 23, 2025

@krsanta
Author

An update on a workaround I discovered: after I execute jupyter notebook in the terminal, if I then click the "Open MATLAB" button in the notebook I'm trying to execute and wait for MATLAB to start in a web browser, if I then go back to the notebook, I CAN execute the cell x=2 and other code cells as well. The output that gets printed to my terminal window is attached below.

Another item of note, in case it's relevant: I used my environment to install the MATLAB engine in R2024b AFTER I installed jupyter-matlab-proxy. Not sure if this could be due to an order of operations type issue, so I'll create a fresh environment where I install the MATLAB engine first and see if that changes anything.

`(m1_matlab) ks1044374@AMER-D9DGC9T6VJ ~ % jupyter notebook &
[1] 26951
(m1_matlab) ks1044374@AMER-D9DGC9T6VJ ~ % [I 2025-01-23 07:33:35.023 ServerApp] jupyter_lsp | extension was successfully linked.
[I 2025-01-23 07:33:35.024 ServerApp] jupyter_server_proxy | extension was successfully linked.
[I 2025-01-23 07:33:35.026 ServerApp] jupyter_server_terminals | extension was successfully linked.
[I 2025-01-23 07:33:35.027 ServerApp] jupyterlab | extension was successfully linked.
[I 2025-01-23 07:33:35.029 ServerApp] notebook | extension was successfully linked.
[I 2025-01-23 07:33:35.464 ServerApp] notebook_shim | extension was successfully linked.
[I 2025-01-23 07:33:35.516 ServerApp] notebook_shim | extension was successfully loaded.
[I 2025-01-23 07:33:35.517 ServerApp] jupyter_lsp | extension was successfully loaded.
INFO:MATLABProxyApp:Initializing Jupyter MATLAB Proxy
[I 2025-01-23 07:33:35.579 ServerApp] jupyter_server_proxy | extension was successfully loaded.
[I 2025-01-23 07:33:35.580 ServerApp] jupyter_server_terminals | extension was successfully loaded.
[I 2025-01-23 07:33:35.583 LabApp] JupyterLab extension loaded from /Users/ks1044374/miniforge3/envs/m1_matlab/lib/python3.11/site-packages/jupyterlab
[I 2025-01-23 07:33:35.583 LabApp] JupyterLab application directory is /Users/ks1044374/miniforge3/envs/m1_matlab/share/jupyter/lab
[I 2025-01-23 07:33:35.583 LabApp] Extension Manager is 'pypi'.
[I 2025-01-23 07:33:35.671 ServerApp] jupyterlab | extension was successfully loaded.
[I 2025-01-23 07:33:35.675 ServerApp] notebook | extension was successfully loaded.
[I 2025-01-23 07:33:35.676 ServerApp] Serving notebooks from local directory: /Users/ks1044374
[I 2025-01-23 07:33:35.676 ServerApp] Jupyter Server 2.15.0 is running at:
[I 2025-01-23 07:33:35.676 ServerApp] http://localhost:8888/tree?token=44a596a83786099c601248888316c216d6555a4411eb4410
[I 2025-01-23 07:33:35.676 ServerApp] http://127.0.0.1:8888/tree?token=44a596a83786099c601248888316c216d6555a4411eb4410
[I 2025-01-23 07:33:35.676 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 2025-01-23 07:33:35.693 ServerApp]

To access the server, open this file in a browser:
    file:///Users/ks1044374/Library/Jupyter/runtime/jpserver-26951-open.html
Or copy and paste one of these URLs:
    http://localhost:8888/tree?token=44a596a83786099c601248888316c216d6555a4411eb4410
    http://127.0.0.1:8888/tree?token=44a596a83786099c601248888316c216d6555a4411eb4410

[I 2025-01-23 07:33:35.736 ServerApp] Skipped non-installed server(s): bash-language-server, dockerfile-language-server-nodejs, javascript-typescript-langserver, jedi-language-server, julia-language-server, pyright, python-language-server, python-lsp-server, r-languageserver, sql-language-server, texlab, typescript-language-server, unified-language-server, vscode-css-languageserver-bin, vscode-html-languageserver-bin, vscode-json-languageserver-bin, yaml-language-server
[I 2025-01-23 07:33:47.438 ServerApp] Kernel started: 849164cc-2014-4890-9072-34185dd3375c
INFO:MATLABKernel:Initializing logger with log_level: INFO
INFO:MATLABKernel:Starting the kernel at pid: 27300
INFO:MATLABKernel:To connect another client to this kernel, use:
INFO:MATLABKernel: --existing kernel-849164cc-2014-4890-9072-34185dd3375c.json
[I 2025-01-23 07:33:48.468 ServerApp] Connecting to kernel 849164cc-2014-4890-9072-34185dd3375c.
[I 2025-01-23 07:33:48.469 ServerApp] Connecting to kernel 849164cc-2014-4890-9072-34185dd3375c.
[I 2025-01-23 07:33:48.480 ServerApp] Connecting to kernel 849164cc-2014-4890-9072-34185dd3375c.
[I 2025-01-23 07:33:48.485 ServerApp] Connecting to kernel 849164cc-2014-4890-9072-34185dd3375c.
[I 2025-01-23 07:33:55.386 ServerApp] Kernel started: 8b9b2eed-6bbe-46ea-84fd-11a8a4ef0350
[I 2025-01-23 07:33:55.388 ServerApp] Kernel shutdown: 849164cc-2014-4890-9072-34185dd3375c
ERROR:MATLABKernel.849164cc-2014-4890-9072-34185dd3375c:Exception occurred while sending interrupt request to MATLAB: 'NoneType' object has no attribute 'send_interrupt_request_to_matlab'
[I 2025-01-23 07:33:56.646 ServerApp] 302 GET /matlab (359821659a0d4bf29f75a0e6bae6be04@::1) 0.69ms
INFO:MATLABProxyManager:Initializing logger with log_level: INFO
WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=2, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x10551ea50>: Failed to establish a new connection: [Errno 61] Connection refused')': /matlab/default
INFO:MATLABKernel:Initializing logger with log_level: INFO
INFO:MATLABKernel:Starting the kernel at pid: 27666
INFO:MATLABKernel:To connect another client to this kernel, use:
INFO:MATLABKernel: --existing kernel-8b9b2eed-6bbe-46ea-84fd-11a8a4ef0350.json
INFO:MATLABProxyApp:Setting no_proxy to: 0.0.0.0,localhost,127.0.0.1
INFO:MATLABProxyApp:Found MATLAB executable at: /Applications/MATLAB_R2024b.app/bin/matlab
INFO:MATLABProxyApp:Using 600 seconds as the default timeout value
INFO:MATLABProxyApp:

                                                  Access MATLAB at:                                                      
           http://localhost:54990/matlab/default?mwi-auth-token=ocS3t-Gqx1oCrEhSJmRdvrdaSctliAW1bSLM9JHf-sU              

=============================================================================================================================
INFO:MATLABProxyApp:Stopped (any running) MATLAB process.
Option -softwareopengl does not apply on MAC.
[I 2025-01-23 07:33:58.014 ServerApp] Connecting to kernel 8b9b2eed-6bbe-46ea-84fd-11a8a4ef0350.
WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=2, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x10551f3d0>: Failed to establish a new connection: [Errno 61] Connection refused')': /matlab/default
INFO:MATLABProxyManager:Redirecting to /matlab/default/
[I 2025-01-23 07:33:59.243 ServerApp] 302 GET /matlab/ (359821659a0d4bf29f75a0e6bae6be04@::1) 2595.23ms
[I 2025-01-23 07:33:59.350 ServerApp] 302 GET /matlab/default/manifest.json (@::1) 0.75ms

                        < M A T L A B (R) >
              Copyright 1984-2024 The MathWorks, Inc.
          R2024b Update 3 (24.2.0.2806996) 64-bit (maca64)
                         November 26, 2024

Warning: Unrecognized command line option: softwareopengl.

To get started, type doc.
For product information, visit www.mathworks.com.

figure - Create figure window
This MATLAB function creates a new figure window using default property
values.

Syntax
  <strong>figure</strong>
  <strong>figure</strong>(Name,Value)
  f = <strong>figure</strong>(___)

  <strong>figure</strong>(f)
  <strong>figure</strong>(n)

Input Arguments
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#buich1u-1-f">f</a> - Target figure
    Figure object
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#buich1u-1-n">n</a> - Target figure number
    scalar integer value

Name-Value Arguments
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#buich1u-1_sep_shared-Name">Name</a> - Name
    '' (default) | character vector | string scalar
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#buich1u-1_sep_shared-Color">Color</a> - Background color
    RGB triplet | hexadecimal color code | 'r' | 'g' | 'b' | ...
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#buich1u-1_sep_shared-Position">Position</a> - Location and size of drawable area
    [left bottom width height]
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#buich1u-1_sep_shared-Units">Units</a> - Units of measurement
    'pixels' (default) | 'normalized' | 'inches' | 'centimeters' |
    'points' | 'characters'

Examples
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#mw_e279e63f-1641-4b14-a781-c5facd020190">Change Figure Size</a>
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#bvjs6el-1">Specify Figure Title</a>
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#bvjs6ew-1">Working with Multiple Figures Simultaneously</a>

See also <a href="matlab:help axes -displayBanner">axes</a>, <a href="matlab:help gcf -displayBanner">gcf</a>, <a href="matlab:help gca -displayBanner">gca</a>, <a href="matlab:help clf -displayBanner">clf</a>, <a href="matlab:help cla -displayBanner">cla</a>, <a href="matlab:help shg -displayBanner">shg</a>, <a href="matlab:help matlab.ui.Figure -displayBanner">Figure</a>

Introduced in MATLAB before R2006a
<a href="matlab:doc figure">Documentation for figure</a>

Your HTML rendering engine is now set to 'textonly'.

[W 2025-01-23 07:34:12.977 ServerApp] 404 GET /serviceregistrylookup/1/service (359821659a0d4bf29f75a0e6bae6be04@::1) 11.57ms referer=http://localhost:8888/
[W 2025-01-23 07:34:15.698 ServerApp] 404 GET /toolbox/matlab/addons_core_reg_point_api_impl/resources/images/thumb_addons_toolbox_white_80x60.png (359821659a0d4bf29f75a0e6bae6be04@::1) 0.72ms referer=http://localhost:8888/
[W 2025-01-23 07:34:15.702 ServerApp] 404 GET /toolbox/matlab/addons_core_reg_point_api_impl/resources/images/thumb_addons_toolbox_white_80x60.png (359821659a0d4bf29f75a0e6bae6be04@::1) 0.51ms referer=http://localhost:8888/
[W 2025-01-23 07:34:15.713 ServerApp] 404 GET /toolbox/matlab/addons_core_reg_point_api_impl/resources/images/thumb_addons_toolbox_white_80x60.png (359821659a0d4bf29f75a0e6bae6be04@::1) 0.52ms referer=http://localhost:8888/
[W 2025-01-23 07:34:15.732 ServerApp] 404 GET /toolbox/matlab/addons_core_reg_point_api_impl/resources/images/thumb_addons_toolbox_white_80x60.png (359821659a0d4bf29f75a0e6bae6be04@::1) 0.72ms referer=http://localhost:8888/
[W 2025-01-23 07:34:17.514 ServerApp] 404 GET /toolbox/matlab/addons_core_reg_point_api_impl/resources/images/thumb_addons_toolbox_white_80x60.png (359821659a0d4bf29f75a0e6bae6be04@::1) 0.61ms referer=http://localhost:8888/
[W 2025-01-23 07:34:17.523 ServerApp] 404 GET /toolbox/matlab/addons_core_reg_point_api_impl/resources/images/thumb_addons_toolbox_white_80x60.png (359821659a0d4bf29f75a0e6bae6be04@::1) 0.57ms referer=http://localhost:8888/
[W 2025-01-23 07:34:19.135 ServerApp] 404 GET /toolbox/matlab/addons_core_reg_point_api_impl/resources/images/thumb_addons_toolbox_white_80x60.png (359821659a0d4bf29f75a0e6bae6be04@::1) 0.71ms referer=http://localhost:8888/
[W 2025-01-23 07:34:19.160 ServerApp] 404 GET /toolbox/matlab/addons_core_reg_point_api_impl/resources/images/thumb_addons_toolbox_white_80x60.png (359821659a0d4bf29f75a0e6bae6be04@::1) 0.83ms referer=http://localhost:8888/
[I 2025-01-23 07:35:47.049 ServerApp] Saving file at /Documents/ANR/Zuko/4.0--New-Filter-Design-Idea-Min-Phase--(1-15-25).ipynb
`

krsanta

krsanta commented on Jan 23, 2025

@krsanta
Author

MWI_MPM_LOG_LEVEL="DEBUG"

Sorry I missed this earlier. Here's the output I get in the terminal window (including the output when I try to run the x=2 cell):

(m1_matlab) ks1044374@AMER-D9DGC9T6VJ ~ % export MWI_MPM_LOG_LEVEL="DEBUG"
(m1_matlab) ks1044374@AMER-D9DGC9T6VJ ~ % jupyter notebook &
[1] 61982
(m1_matlab) ks1044374@AMER-D9DGC9T6VJ ~ % [I 2025-01-23 08:10:41.172 ServerApp] Extension package jupyter_server_proxy took 0.2758s to import
[I 2025-01-23 08:10:41.395 ServerApp] jupyter_lsp | extension was successfully linked.
[I 2025-01-23 08:10:41.395 ServerApp] jupyter_server_proxy | extension was successfully linked.
[I 2025-01-23 08:10:41.398 ServerApp] jupyter_server_terminals | extension was successfully linked.
[I 2025-01-23 08:10:41.401 ServerApp] jupyterlab | extension was successfully linked.
[I 2025-01-23 08:10:41.404 ServerApp] notebook | extension was successfully linked.
[I 2025-01-23 08:10:42.626 ServerApp] notebook_shim | extension was successfully linked.
[I 2025-01-23 08:10:42.722 ServerApp] notebook_shim | extension was successfully loaded.
[I 2025-01-23 08:10:42.724 ServerApp] jupyter_lsp | extension was successfully loaded.
INFO:MATLABProxyApp:Initializing Jupyter MATLAB Proxy
[I 2025-01-23 08:10:42.793 ServerApp] jupyter_server_proxy | extension was successfully loaded.
[I 2025-01-23 08:10:42.794 ServerApp] jupyter_server_terminals | extension was successfully loaded.
[I 2025-01-23 08:10:42.798 LabApp] JupyterLab extension loaded from /Users/ks1044374/miniforge3/envs/m1_matlab/lib/python3.11/site-packages/jupyterlab
[I 2025-01-23 08:10:42.798 LabApp] JupyterLab application directory is /Users/ks1044374/miniforge3/envs/m1_matlab/share/jupyter/lab
[I 2025-01-23 08:10:42.799 LabApp] Extension Manager is 'pypi'.
[I 2025-01-23 08:10:42.876 ServerApp] jupyterlab | extension was successfully loaded.
[I 2025-01-23 08:10:42.882 ServerApp] notebook | extension was successfully loaded.
[I 2025-01-23 08:10:42.883 ServerApp] Serving notebooks from local directory: /Users/ks1044374
[I 2025-01-23 08:10:42.883 ServerApp] Jupyter Server 2.15.0 is running at:
[I 2025-01-23 08:10:42.883 ServerApp] http://localhost:8888/tree?token=554058f29e8c24a777df4382fcd7538c2a329fa75ac83690
[I 2025-01-23 08:10:42.883 ServerApp] http://127.0.0.1:8888/tree?token=554058f29e8c24a777df4382fcd7538c2a329fa75ac83690
[I 2025-01-23 08:10:42.883 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 2025-01-23 08:10:42.901 ServerApp]

To access the server, open this file in a browser:
    file:///Users/ks1044374/Library/Jupyter/runtime/jpserver-61982-open.html
Or copy and paste one of these URLs:
    http://localhost:8888/tree?token=554058f29e8c24a777df4382fcd7538c2a329fa75ac83690
    http://127.0.0.1:8888/tree?token=554058f29e8c24a777df4382fcd7538c2a329fa75ac83690

[I 2025-01-23 08:10:42.949 ServerApp] Skipped non-installed server(s): bash-language-server, dockerfile-language-server-nodejs, javascript-typescript-langserver, jedi-language-server, julia-language-server, pyright, python-language-server, python-lsp-server, r-languageserver, sql-language-server, texlab, typescript-language-server, unified-language-server, vscode-css-languageserver-bin, vscode-html-languageserver-bin, vscode-json-languageserver-bin, yaml-language-server
[I 2025-01-23 08:11:00.123 ServerApp] Kernel started: 323afd22-b106-463b-a326-a2064b0b954a
INFO:MATLABKernel:Initializing logger with log_level: INFO
INFO:MATLABKernel:Starting the kernel at pid: 62292
DEBUG:asyncio:Using selector: KqueueSelector
DEBUG:asyncio:Using selector: KqueueSelector
INFO:MATLABKernel:To connect another client to this kernel, use:
INFO:MATLABKernel: --existing kernel-323afd22-b106-463b-a326-a2064b0b954a.json
DEBUG:asyncio:Using selector: KqueueSelector
[I 2025-01-23 08:11:01.168 ServerApp] Connecting to kernel 323afd22-b106-463b-a326-a2064b0b954a.
[I 2025-01-23 08:11:01.170 ServerApp] Connecting to kernel 323afd22-b106-463b-a326-a2064b0b954a.
[I 2025-01-23 08:11:01.181 ServerApp] Connecting to kernel 323afd22-b106-463b-a326-a2064b0b954a.
DEBUG:MATLABProxyApp:Using the folder: /Users/ks1044374/.matlab/MWI/hosts/AMER-D9DGC9T6VJ for storing all matlab-proxy related session information
DEBUG:MATLABProxyManager:Parent pid not matched, nothing to cleanup
DEBUG:MATLABProxyManager:Starting matlab proxy using 61982, default, True
DEBUG:MATLABProxyApp:Using the folder: /Users/ks1044374/.matlab/MWI/hosts/AMER-D9DGC9T6VJ for storing all matlab-proxy related session information
DEBUG:MATLABProxyManager:Starting new matlab proxy server
DEBUG:MATLABProxyApp:Using auto-generated token.
DEBUG:MATLABProxyManager:Starting matlab proxy subprocess for posix
DEBUG:MATLABProxyManager:MATLAB proxy info: pid = 62319, rc = None
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1:63450
DEBUG:urllib3.util.retry:Incremented Retry for (url='/matlab/default'): Retry(total=1, connect=1, read=2, redirect=None, status=None)
WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=2, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x109078290>: Failed to establish a new connection: [Errno 61] Connection refused')': /matlab/default
DEBUG:urllib3.connectionpool:Starting new HTTP connection (2): 127.0.0.1:63450
DEBUG:urllib3.util.retry:Incremented Retry for (url='/matlab/default'): Retry(total=0, connect=0, read=2, redirect=None, status=None)
WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=2, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x109080d50>: Failed to establish a new connection: [Errno 61] Connection refused')': /matlab/default
DEBUG:urllib3.connectionpool:Starting new HTTP connection (3): 127.0.0.1:63450
DEBUG:MATLABProxyManager:Couldn't reach the server with error: HTTPConnectionPool(host='127.0.0.1', port=63450): Max retries exceeded with url: /matlab/default (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x1090817d0>: Failed to establish a new connection: [Errno 61] Connection refused'))
ERROR:MATLABProxyManager:matlab-proxy server never became ready
ERROR:MATLABKernel.323afd22-b106-463b-a326-a2064b0b954a:MATLAB Kernel could not start matlab-proxy using proxy manager with error: 'NoneType' object has no attribute 'get'
ERROR:MATLABKernel.323afd22-b106-463b-a326-a2064b0b954a:Found a startup error:
Error: MATLAB Kernel could not start the MATLAB proxy process via proxy manager.

ERROR:MATLABKernel.323afd22-b106-463b-a326-a2064b0b954a:Exception occurred while processing execution request:

            Error: MATLAB Kernel could not start the MATLAB proxy process via proxy manager.

INFO:MATLABProxyApp:Setting no_proxy to: 0.0.0.0,localhost,127.0.0.1
INFO:MATLABProxyApp:Found MATLAB executable at: /Applications/MATLAB_R2024b.app/bin/matlab
INFO:MATLABProxyApp:Using 600 seconds as the default timeout value
INFO:MATLABProxyApp:

Access MATLAB at:
http://localhost:63450/matlab/default?mwi-auth-token=dYK8i_RtI8dnoCeNLS_twZccKv-CTAeDAXNGNswq4Q4

INFO:MATLABProxyApp:Stopped (any running) MATLAB process.
Option -softwareopengl does not apply on MAC.
[I 2025-01-23 08:11:06.129 ServerApp] Connecting to kernel 323afd22-b106-463b-a326-a2064b0b954a.

                        < M A T L A B (R) >
              Copyright 1984-2024 The MathWorks, Inc.
          R2024b Update 3 (24.2.0.2806996) 64-bit (maca64)
                         November 26, 2024

Warning: Unrecognized command line option: softwareopengl.

To get started, type doc.
For product information, visit www.mathworks.com.

figure - Create figure window
This MATLAB function creates a new figure window using default property
values.

Syntax
  <strong>figure</strong>
  <strong>figure</strong>(Name,Value)
  f = <strong>figure</strong>(___)

  <strong>figure</strong>(f)
  <strong>figure</strong>(n)

Input Arguments
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#buich1u-1-f">f</a> - Target figure
    Figure object
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#buich1u-1-n">n</a> - Target figure number
    scalar integer value

Name-Value Arguments
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#buich1u-1_sep_shared-Name">Name</a> - Name
    '' (default) | character vector | string scalar
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#buich1u-1_sep_shared-Color">Color</a> - Background color
    RGB triplet | hexadecimal color code | 'r' | 'g' | 'b' | ...
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#buich1u-1_sep_shared-Position">Position</a> - Location and size of drawable area
    [left bottom width height]
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#buich1u-1_sep_shared-Units">Units</a> - Units of measurement
    'pixels' (default) | 'normalized' | 'inches' | 'centimeters' |
    'points' | 'characters'

Examples
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#mw_e279e63f-1641-4b14-a781-c5facd020190">Change Figure Size</a>
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#bvjs6el-1">Specify Figure Title</a>
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#bvjs6ew-1">Working with Multiple Figures Simultaneously</a>

See also <a href="matlab:help axes -displayBanner">axes</a>, <a href="matlab:help gcf -displayBanner">gcf</a>, <a href="matlab:help gca -displayBanner">gca</a>, <a href="matlab:help clf -displayBanner">clf</a>, <a href="matlab:help cla -displayBanner">cla</a>, <a href="matlab:help shg -displayBanner">shg</a>, <a href="matlab:help matlab.ui.Figure -displayBanner">Figure</a>

Introduced in MATLAB before R2006a
<a href="matlab:doc figure">Documentation for figure</a>

Your HTML rendering engine is now set to 'textonly'.

krsanta

krsanta commented on Jan 23, 2025

@krsanta
Author

So I tried a couple of different fresh environments/installs:

  1. New conda environment, python=3.11, install MATLAB python engine BEFORE installing jupyter-matlab-proxy. No change.
  2. New conda environment, python=3.9, install MATLAB python engine BEFORE installing jupyter-matlab-proxy. No change.

There is one other tenuous way I've discovered to get the notebook to connect. After running jupyter notebook and opening the notebook with the x=2 cell I want to execute, I do the following:

  1. Immediately try to execute the x=2 cell. I get the same error as reported above. MATLAB is spawned in the background on my computer (I can see the MATLAB logo on the bottom of my screen).
  2. Click on the kernel and re-select "MATLAB kernel" (it is already set to MATLAB-kernel when I open the notebook).
  3. Re-execute the x=2 cell. Another instance of MATLAB is spawned.

The cell x=2 now executes as it should and the notebook is connected.

Output for this on the terminal window listed below:

(m1_matlab) ks1044374@AMER-D9DGC9T6VJ ~ % jupyter notebook &
[1] 760
(m1_matlab) ks1044374@AMER-D9DGC9T6VJ ~ % [I 2025-01-23 08:53:33.855 ServerApp] Extension package jupyter_server_proxy took 0.2430s to import
[I 2025-01-23 08:53:34.091 ServerApp] jupyter_lsp | extension was successfully linked.
[I 2025-01-23 08:53:34.091 ServerApp] jupyter_server_proxy | extension was successfully linked.
[I 2025-01-23 08:53:34.096 ServerApp] jupyter_server_terminals | extension was successfully linked.
[I 2025-01-23 08:53:34.100 ServerApp] jupyterlab | extension was successfully linked.
[I 2025-01-23 08:53:34.103 ServerApp] notebook | extension was successfully linked.
[I 2025-01-23 08:53:35.226 ServerApp] notebook_shim | extension was successfully linked.
[I 2025-01-23 08:53:35.313 ServerApp] notebook_shim | extension was successfully loaded.
[I 2025-01-23 08:53:35.315 ServerApp] jupyter_lsp | extension was successfully loaded.
INFO:MATLABProxyApp:Initializing Jupyter MATLAB Proxy
[I 2025-01-23 08:53:35.416 ServerApp] jupyter_server_proxy | extension was successfully loaded.
[I 2025-01-23 08:53:35.417 ServerApp] jupyter_server_terminals | extension was successfully loaded.
[I 2025-01-23 08:53:35.421 LabApp] JupyterLab extension loaded from /Users/ks1044374/miniforge3/envs/m1_matlab/lib/python3.11/site-packages/jupyterlab
[I 2025-01-23 08:53:35.421 LabApp] JupyterLab application directory is /Users/ks1044374/miniforge3/envs/m1_matlab/share/jupyter/lab
[I 2025-01-23 08:53:35.422 LabApp] Extension Manager is 'pypi'.
[I 2025-01-23 08:53:35.504 ServerApp] jupyterlab | extension was successfully loaded.
[I 2025-01-23 08:53:35.511 ServerApp] notebook | extension was successfully loaded.
[I 2025-01-23 08:53:35.513 ServerApp] Serving notebooks from local directory: /Users/ks1044374
[I 2025-01-23 08:53:35.513 ServerApp] Jupyter Server 2.15.0 is running at:
[I 2025-01-23 08:53:35.513 ServerApp] http://localhost:8888/tree?token=c235a246b2093ad978f2ac1c332c303bb320a176f6063adf
[I 2025-01-23 08:53:35.513 ServerApp] http://127.0.0.1:8888/tree?token=c235a246b2093ad978f2ac1c332c303bb320a176f6063adf
[I 2025-01-23 08:53:35.513 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 2025-01-23 08:53:35.531 ServerApp]

To access the server, open this file in a browser:
    file:///Users/ks1044374/Library/Jupyter/runtime/jpserver-760-open.html
Or copy and paste one of these URLs:
    http://localhost:8888/tree?token=c235a246b2093ad978f2ac1c332c303bb320a176f6063adf
    http://127.0.0.1:8888/tree?token=c235a246b2093ad978f2ac1c332c303bb320a176f6063adf

[I 2025-01-23 08:53:35.583 ServerApp] Skipped non-installed server(s): bash-language-server, dockerfile-language-server-nodejs, javascript-typescript-langserver, jedi-language-server, julia-language-server, pyright, python-language-server, python-lsp-server, r-languageserver, sql-language-server, texlab, typescript-language-server, unified-language-server, vscode-css-languageserver-bin, vscode-html-languageserver-bin, vscode-json-languageserver-bin, yaml-language-server
[I 2025-01-23 08:53:46.555 ServerApp] Kernel started: 9a2f4438-9936-482f-b713-d8cf749f3d25
INFO:MATLABKernel:Initializing logger with log_level: INFO
INFO:MATLABKernel:Starting the kernel at pid: 1225
DEBUG:asyncio:Using selector: KqueueSelector
DEBUG:asyncio:Using selector: KqueueSelector
INFO:MATLABKernel:To connect another client to this kernel, use:
INFO:MATLABKernel: --existing kernel-9a2f4438-9936-482f-b713-d8cf749f3d25.json
DEBUG:asyncio:Using selector: KqueueSelector
[I 2025-01-23 08:53:47.792 ServerApp] Connecting to kernel 9a2f4438-9936-482f-b713-d8cf749f3d25.
[I 2025-01-23 08:53:47.794 ServerApp] Connecting to kernel 9a2f4438-9936-482f-b713-d8cf749f3d25.
[I 2025-01-23 08:53:47.806 ServerApp] Connecting to kernel 9a2f4438-9936-482f-b713-d8cf749f3d25.
[W 2025-01-23 08:53:47.815 ServerApp] Got events for closed stream <zmq.eventloop.zmqstream.ZMQStream object at 0x1117eaad0>
[I 2025-01-23 08:53:48.139 ServerApp] Connecting to kernel 9a2f4438-9936-482f-b713-d8cf749f3d25.
DEBUG:MATLABProxyApp:Using the folder: /Users/ks1044374/.matlab/MWI/hosts/AMER-D9DGC9T6VJ for storing all matlab-proxy related session information
DEBUG:MATLABProxyManager:Parent pid not matched, nothing to cleanup
DEBUG:MATLABProxyManager:Starting matlab proxy using 760, default, True
DEBUG:MATLABProxyApp:Using the folder: /Users/ks1044374/.matlab/MWI/hosts/AMER-D9DGC9T6VJ for storing all matlab-proxy related session information
DEBUG:MATLABProxyManager:Starting new matlab proxy server
DEBUG:MATLABProxyApp:Using auto-generated token.
DEBUG:MATLABProxyManager:Starting matlab proxy subprocess for posix
DEBUG:MATLABProxyManager:MATLAB proxy info: pid = 1265, rc = None
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1:57284
DEBUG:urllib3.util.retry:Incremented Retry for (url='/matlab/default'): Retry(total=1, connect=1, read=2, redirect=None, status=None)
WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=2, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x10765ebd0>: Failed to establish a new connection: [Errno 61] Connection refused')': /matlab/default
DEBUG:urllib3.connectionpool:Starting new HTTP connection (2): 127.0.0.1:57284
DEBUG:urllib3.util.retry:Incremented Retry for (url='/matlab/default'): Retry(total=0, connect=0, read=2, redirect=None, status=None)
WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=2, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x1076817d0>: Failed to establish a new connection: [Errno 61] Connection refused')': /matlab/default
DEBUG:urllib3.connectionpool:Starting new HTTP connection (3): 127.0.0.1:57284
DEBUG:MATLABProxyManager:Couldn't reach the server with error: HTTPConnectionPool(host='127.0.0.1', port=57284): Max retries exceeded with url: /matlab/default (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x107682210>: Failed to establish a new connection: [Errno 61] Connection refused'))
ERROR:MATLABProxyManager:matlab-proxy server never became ready
ERROR:MATLABKernel.9a2f4438-9936-482f-b713-d8cf749f3d25:MATLAB Kernel could not start matlab-proxy using proxy manager with error: 'NoneType' object has no attribute 'get'
ERROR:MATLABKernel.9a2f4438-9936-482f-b713-d8cf749f3d25:Found a startup error:
Error: MATLAB Kernel could not start the MATLAB proxy process via proxy manager.

ERROR:MATLABKernel.9a2f4438-9936-482f-b713-d8cf749f3d25:Exception occurred while processing execution request:

            Error: MATLAB Kernel could not start the MATLAB proxy process via proxy manager.

INFO:MATLABProxyApp:Setting no_proxy to: 0.0.0.0,localhost,127.0.0.1
INFO:MATLABProxyApp:Found MATLAB executable at: /Applications/MATLAB_R2024b.app/bin/matlab
INFO:MATLABProxyApp:Using 600 seconds as the default timeout value
INFO:MATLABProxyApp:

Access MATLAB at:
http://localhost:57284/matlab/default?mwi-auth-token=ZErahMPfKun8d5HcaOBoEmC1QEhyTfxRSlT1cC-DWog

INFO:MATLABProxyApp:Stopped (any running) MATLAB process.
Option -softwareopengl does not apply on MAC.

                        < M A T L A B (R) >
              Copyright 1984-2024 The MathWorks, Inc.
          R2024b Update 3 (24.2.0.2806996) 64-bit (maca64)
                         November 26, 2024

Warning: Unrecognized command line option: softwareopengl.

To get started, type doc.
For product information, visit www.mathworks.com.

[I 2025-01-23 08:53:55.641 ServerApp] Kernel started: f493a405-11f0-419b-ad32-f13c223efa1b
[I 2025-01-23 08:53:55.643 ServerApp] Kernel shutdown: 9a2f4438-9936-482f-b713-d8cf749f3d25
ERROR:MATLABKernel.9a2f4438-9936-482f-b713-d8cf749f3d25:Exception occurred while sending interrupt request to MATLAB: 'NoneType' object has no attribute 'send_interrupt_request_to_matlab'
DEBUG:MATLABProxyManager:Required arguments (parent_pid | caller_id | mpm_auth_token) for shutdown missing
INFO:MATLABKernel:Initializing logger with log_level: INFO
INFO:MATLABKernel:Starting the kernel at pid: 1450
DEBUG:asyncio:Using selector: KqueueSelector
DEBUG:asyncio:Using selector: KqueueSelector
INFO:MATLABKernel:To connect another client to this kernel, use:
INFO:MATLABKernel: --existing kernel-f493a405-11f0-419b-ad32-f13c223efa1b.json
DEBUG:asyncio:Using selector: KqueueSelector
[I 2025-01-23 08:53:57.210 ServerApp] Connecting to kernel f493a405-11f0-419b-ad32-f13c223efa1b.
DEBUG:MATLABProxyApp:Using the folder: /Users/ks1044374/.matlab/MWI/hosts/AMER-D9DGC9T6VJ for storing all matlab-proxy related session information
DEBUG:MATLABProxyManager:Parent pid not matched, nothing to cleanup
DEBUG:MATLABProxyManager:Starting matlab proxy using 760, default, True
DEBUG:MATLABProxyApp:Using the folder: /Users/ks1044374/.matlab/MWI/hosts/AMER-D9DGC9T6VJ for storing all matlab-proxy related session information
DEBUG:MATLABProxyManager:Starting new matlab proxy server
DEBUG:MATLABProxyApp:Using auto-generated token.
DEBUG:MATLABProxyManager:Starting matlab proxy subprocess for posix
DEBUG:MATLABProxyManager:MATLAB proxy info: pid = 1529, rc = None
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1:57346
DEBUG:urllib3.util.retry:Incremented Retry for (url='/matlab/default'): Retry(total=1, connect=1, read=2, redirect=None, status=None)
WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=1, read=2, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x105ee7410>: Failed to establish a new connection: [Errno 61] Connection refused')': /matlab/default
DEBUG:urllib3.connectionpool:Starting new HTTP connection (2): 127.0.0.1:57346
DEBUG:urllib3.util.retry:Incremented Retry for (url='/matlab/default'): Retry(total=0, connect=0, read=2, redirect=None, status=None)
INFO:MATLABProxyApp:Setting no_proxy to: 0.0.0.0,localhost,127.0.0.1
INFO:MATLABProxyApp:Found MATLAB executable at: /Applications/MATLAB_R2024b.app/bin/matlab
INFO:MATLABProxyApp:Using 600 seconds as the default timeout value
INFO:MATLABProxyApp:

Access MATLAB at:
http://localhost:57346/matlab/default?mwi-auth-token=NeblKIOjUoNQDeQ8-FeNY2OlSfsXFLjOi131qhn9qGo

INFO:MATLABProxyApp:Stopped (any running) MATLAB process.
Option -softwareopengl does not apply on MAC.
WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=0, read=2, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x105ee7cd0>: Failed to establish a new connection: [Errno 61] Connection refused')': /matlab/default
DEBUG:urllib3.connectionpool:Starting new HTTP connection (3): 127.0.0.1:57346
DEBUG:urllib3.connectionpool:http://127.0.0.1:57346 "GET /matlab/default HTTP/1.1" 302 10
DEBUG:urllib3.connectionpool:http://127.0.0.1:57346 "GET /matlab/default/index.html HTTP/1.1" 200 637
DEBUG:MATLABProxyManager:Response status code from server readiness: 200
DEBUG:MATLABProxyManager:Matlab proxy process info: http://127.0.0.1:57346, /matlab/default
DEBUG:MATLABProxyManager:State file 760_f493a405-11f0-419b-ad32-f13c223efa1b created in /Users/ks1044374/.matlab/MWI/hosts/AMER-D9DGC9T6VJ/proxy_manager

                        < M A T L A B (R) >
              Copyright 1984-2024 The MathWorks, Inc.
          R2024b Update 3 (24.2.0.2806996) 64-bit (maca64)
                         November 26, 2024

Warning: Unrecognized command line option: softwareopengl.

To get started, type doc.
For product information, visit www.mathworks.com.

figure - Create figure window
This MATLAB function creates a new figure window using default property
values.

Syntax
  <strong>figure</strong>
  <strong>figure</strong>(Name,Value)
  f = <strong>figure</strong>(___)

  <strong>figure</strong>(f)
  <strong>figure</strong>(n)

Input Arguments
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#buich1u-1-f">f</a> - Target figure
    Figure object
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#buich1u-1-n">n</a> - Target figure number
    scalar integer value

Name-Value Arguments
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#buich1u-1_sep_shared-Name">Name</a> - Name
    '' (default) | character vector | string scalar
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#buich1u-1_sep_shared-Color">Color</a> - Background color
    RGB triplet | hexadecimal color code | 'r' | 'g' | 'b' | ...
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#buich1u-1_sep_shared-Position">Position</a> - Location and size of drawable area
    [left bottom width height]
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#buich1u-1_sep_shared-Units">Units</a> - Units of measurement
    'pixels' (default) | 'normalized' | 'inches' | 'centimeters' |
    'points' | 'characters'

Examples
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#mw_e279e63f-1641-4b14-a781-c5facd020190">Change Figure Size</a>
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#bvjs6el-1">Specify Figure Title</a>
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#bvjs6ew-1">Working with Multiple Figures Simultaneously</a>

See also <a href="matlab:help axes -displayBanner">axes</a>, <a href="matlab:help gcf -displayBanner">gcf</a>, <a href="matlab:help gca -displayBanner">gca</a>, <a href="matlab:help clf -displayBanner">clf</a>, <a href="matlab:help cla -displayBanner">cla</a>, <a href="matlab:help shg -displayBanner">shg</a>, <a href="matlab:help matlab.ui.Figure -displayBanner">Figure</a>

Introduced in MATLAB before R2006a
<a href="matlab:doc figure">Documentation for figure</a>

Your HTML rendering engine is now set to 'textonly'.

[I

krisctl

krisctl commented on Jan 24, 2025

@krisctl
Member

Dear @krsanta,

Thank you for sharing the logs and detailing your experiments. Based on the information provided, it seems likely that we're encountering a race condition. This occurs between the time when the backend matlab-proxy server becomes ready and when the infrastructure responsible for monitoring its readiness prematurely concludes that the server is not ready.

I have a potential fix for this issue and hope to provide it to you shortly. Thank you for your patience and understanding!

krsanta

krsanta commented on Jan 24, 2025

@krsanta
Author
krisctl

krisctl commented on Feb 12, 2025

@krisctl
Member

Dear @krsanta,

Can you please try if the latest versions of matlab-proxy and jupyter-matlab-proxy fixes this issue?

To upgrade, please use the below command :

pip install --upgrade jupyter-matlab-proxy matlab-proxy

and verify that the upgrade went through using commands like below:

pip list | grep "matlab-proxy"

Expected output for the above command is 0.24.1 for matlab-proxy package which contains the fix.

Please let us know if the upgraded packages resolve this issue. HTH!

krsanta

krsanta commented on Feb 20, 2025

@krsanta
Author

I haven't done extensive testing, but this appears to have fixed the problem! I'm now simply able to connect to the MATLAB kernel, and the moment I execute a cell, it starts MATLAB. In case it's helpful, I'm attaching what prints out in my terminal window after I start jupyter and then execute the MATLAB kernel:

(m1_matlab) ks1044374@AMER-D9DGC9T6VJ KeithS % jupyter notebook &
[1] 86968
(m1_matlab) ks1044374@AMER-D9DGC9T6VJ KeithS % [I 2025-02-20 13:49:17.541 ServerApp] Extension package jupyter_server_proxy took 0.2643s to import
[I 2025-02-20 13:49:17.782 ServerApp] jupyter_lsp | extension was successfully linked.
[I 2025-02-20 13:49:17.782 ServerApp] jupyter_server_proxy | extension was successfully linked.
[I 2025-02-20 13:49:17.786 ServerApp] jupyter_server_terminals | extension was successfully linked.
[I 2025-02-20 13:49:17.790 ServerApp] jupyterlab | extension was successfully linked.
[I 2025-02-20 13:49:17.793 ServerApp] notebook | extension was successfully linked.
[I 2025-02-20 13:49:18.897 ServerApp] notebook_shim | extension was successfully linked.
[I 2025-02-20 13:49:19.016 ServerApp] notebook_shim | extension was successfully loaded.
[I 2025-02-20 13:49:19.017 ServerApp] jupyter_lsp | extension was successfully loaded.
INFO:MATLABProxyApp:Initializing Jupyter MATLAB Proxy
[I 2025-02-20 13:49:19.158 ServerApp] jupyter_server_proxy | extension was successfully loaded.
[I 2025-02-20 13:49:19.160 ServerApp] jupyter_server_terminals | extension was successfully loaded.
[I 2025-02-20 13:49:19.170 LabApp] JupyterLab extension loaded from /Users/ks1044374/miniforge3/envs/m1_matlab/lib/python3.11/site-packages/jupyterlab
[I 2025-02-20 13:49:19.170 LabApp] JupyterLab application directory is /Users/ks1044374/miniforge3/envs/m1_matlab/share/jupyter/lab
[I 2025-02-20 13:49:19.172 LabApp] Extension Manager is 'pypi'.
[I 2025-02-20 13:49:19.306 ServerApp] jupyterlab | extension was successfully loaded.
[I 2025-02-20 13:49:19.315 ServerApp] notebook | extension was successfully loaded.
[I 2025-02-20 13:49:19.317 ServerApp] Serving notebooks from local directory: /Users/ks1044374/Library/CloudStorage/OneDrive-BoseCorporation/Documents/Arrow_WalkingMode/Notebooks/KeithS
[I 2025-02-20 13:49:19.317 ServerApp] Jupyter Server 2.15.0 is running at:
[I 2025-02-20 13:49:19.317 ServerApp] http://localhost:8888/tree?token=86a8c81d110cdc9a01de34edf802ff05a063f0520bcaa532
[I 2025-02-20 13:49:19.317 ServerApp] http://127.0.0.1:8888/tree?token=86a8c81d110cdc9a01de34edf802ff05a063f0520bcaa532
[I 2025-02-20 13:49:19.317 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 2025-02-20 13:49:19.354 ServerApp]

To access the server, open this file in a browser:
    file:///Users/ks1044374/Library/Jupyter/runtime/jpserver-86968-open.html
Or copy and paste one of these URLs:
    http://localhost:8888/tree?token=86a8c81d110cdc9a01de34edf802ff05a063f0520bcaa532
    http://127.0.0.1:8888/tree?token=86a8c81d110cdc9a01de34edf802ff05a063f0520bcaa532

[I 2025-02-20 13:49:19.416 ServerApp] Skipped non-installed server(s): bash-language-server, dockerfile-language-server-nodejs, javascript-typescript-langserver, jedi-language-server, julia-language-server, pyright, python-language-server, python-lsp-server, r-languageserver, sql-language-server, texlab, typescript-language-server, unified-language-server, vscode-css-languageserver-bin, vscode-html-languageserver-bin, vscode-json-languageserver-bin, yaml-language-server
[I 2025-02-20 13:49:24.321 ServerApp] Kernel started: 19ad1cc1-0713-4dbe-9d8a-b9105d51b723
INFO:MATLABKernel:Initializing logger with log_level: INFO
INFO:MATLABKernel:Starting the kernel at pid: 87263
INFO:MATLABKernel:To connect another client to this kernel, use:
INFO:MATLABKernel: --existing kernel-19ad1cc1-0713-4dbe-9d8a-b9105d51b723.json
[I 2025-02-20 13:49:25.337 ServerApp] Connecting to kernel 19ad1cc1-0713-4dbe-9d8a-b9105d51b723.
[I 2025-02-20 13:49:25.338 ServerApp] Connecting to kernel 19ad1cc1-0713-4dbe-9d8a-b9105d51b723.
[I 2025-02-20 13:49:25.350 ServerApp] Connecting to kernel 19ad1cc1-0713-4dbe-9d8a-b9105d51b723.
[I 2025-02-20 13:49:31.791 ServerApp] Connecting to kernel 19ad1cc1-0713-4dbe-9d8a-b9105d51b723.
WARNING:urllib3.connectionpool:Retrying (Retry(total=6, connect=6, read=7, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x10836dcd0>: Failed to establish a new connection: [Errno 61] Connection refused')': /matlab/default
WARNING:urllib3.connectionpool:Retrying (Retry(total=5, connect=5, read=7, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x108380110>: Failed to establish a new connection: [Errno 61] Connection refused')': /matlab/default
INFO:MATLABProxyApp:Setting no_proxy to: 0.0.0.0,localhost,127.0.0.1
INFO:MATLABProxyApp:Found MATLAB executable at: /Applications/MATLAB_R2024b.app/bin/matlab
INFO:MATLABProxyApp:Using 600 seconds as the default timeout value
INFO:MATLABProxyApp:

Access MATLAB at:
http://localhost:55917/matlab/default?mwi-auth-token=tsm9CyIyUaYufa4W_N5AYCFg9LqJu_meRqOdC63CMx4

INFO:MATLABProxyApp:Stopped (any running) MATLAB process.
Option -softwareopengl does not apply on MAC.
WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=4, read=7, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x108380d90>: Failed to establish a new connection: [Errno 61] Connection refused')': /matlab/default

                        < M A T L A B (R) >
              Copyright 1984-2024 The MathWorks, Inc.
          R2024b Update 3 (24.2.0.2806996) 64-bit (maca64)
                         November 26, 2024

Warning: Unrecognized command line option: softwareopengl.

To get started, type doc.
For product information, visit www.mathworks.com.

figure - Create figure window
This MATLAB function creates a new figure window using default property
values.

Syntax
  <strong>figure</strong>
  <strong>figure</strong>(Name,Value)
  f = <strong>figure</strong>(___)

  <strong>figure</strong>(f)
  <strong>figure</strong>(n)

Input Arguments
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#buich1u-1-f">f</a> - Target figure
    Figure object
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#buich1u-1-n">n</a> - Target figure number
    scalar integer value

Name-Value Arguments
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#buich1u-1_sep_shared-Name">Name</a> - Name
    '' (default) | character vector | string scalar
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#buich1u-1_sep_shared-Color">Color</a> - Background color
    RGB triplet | hexadecimal color code | 'r' | 'g' | 'b' | ...
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#buich1u-1_sep_shared-Position">Position</a> - Location and size of drawable area
    [left bottom width height]
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#buich1u-1_sep_shared-Units">Units</a> - Units of measurement
    'pixels' (default) | 'normalized' | 'inches' | 'centimeters' |
    'points' | 'characters'

Examples
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#mw_e279e63f-1641-4b14-a781-c5facd020190">Change Figure Size</a>
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#bvjs6el-1">Specify Figure Title</a>
  <a href="matlab:web /Applications/MATLAB_R2024b.app/help/matlab/ref/figure.html#bvjs6ew-1">Working with Multiple Figures Simultaneously</a>

See also <a href="matlab:help axes -displayBanner">axes</a>, <a href="matlab:help gcf -displayBanner">gcf</a>, <a href="matlab:help gca -displayBanner">gca</a>, <a href="matlab:help clf -displayBanner">clf</a>, <a href="matlab:help cla -displayBanner">cla</a>, <a href="matlab:help shg -displayBanner">shg</a>, <a href="matlab:help matlab.ui.Figure -displayBanner">Figure</a>

Introduced in MATLAB before R2006a
<a href="matlab:doc figure">Documentation for figure</a>

Your HTML rendering engine is now set to 'textonly'.

krisctl

krisctl commented on Feb 20, 2025

@krisctl
Member

Perfect, thank you for updating us. I'll be now closing the issue. Kindly leave a comment if this issue shows up again and I'll be happy to assist further.

Thank you for trying out MATLAB integration for Jupyter!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't workingfixed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @krisctl@krsanta@prabhakk-mw

      Issue actions

        MATLAB Kernel cannot start MATLAB Proxy Manager on M1 Mac. · Issue #110 · mathworks/jupyter-matlab-proxy