jupyter-matlab-proxy icon indicating copy to clipboard operation
jupyter-matlab-proxy copied to clipboard

Are administrator privileges required in the Windows system?

Open Rabbits-sys opened this issue 9 months ago • 2 comments

In Windows, matlab-proxy-app will not be able to connect to MATLAB R2024a unless administrator privileges are granted, but will start a MATLAB process in the background that cannot be terminated with Jupyter Close.

In the diagram is the part of the log in Debug mode that is different from administrator mode when it is started without administrator privileges:

屏幕截图 2024-05-09 152521

Rabbits-sys avatar May 09 '24 07:05 Rabbits-sys

Hello @Rabbits-sys ,

Thank you for trying the MATLAB Integration for Jupyter!

In Windows, matlab-proxy-app will not be able to connect to MATLAB R2024a unless administrator privileges are granted,

Do you need to give admin privileges, when you double click the MATLAB icon or when you run matlab in your command prompt ?

Do you see MATLAB starting in the background ? You can check the task manager on windows to see if the MATLAB process has started.

Could you please provide the exact reproduction steps that is leading to the above error.

diningPhilosopher64 avatar May 13 '24 10:05 diningPhilosopher64

@diningPhilosopher64 First of all, I didn't need administrator privileges to open MATLAB with command matlab in the terminal. And after I tested this issue for several times I was shocked to find more than 10 MATLAB processes in the Task Manager. All the steps I did were as follows:

  1. $Env:MWI_LOG_LEVEL="DEBUG"
  2. jupyter lab
  3. select the Matlab kernel.

At the same time, I also tested running .\matlab-proxy-app directly through the terminal without administrator privileges, and it showed the same error.

Rabbits-sys avatar May 15 '24 12:05 Rabbits-sys

Dear @Rabbits-sys,

This issue should be resolved by the latest versions of matlab-proxy and jupyter-matlab-proxy.

Could you please upgrade these packages using the command :

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

and verify that the upgrade went through using commands like:

pip list | Select-String "matlab-proxy" in PowerShell.

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

krisctl avatar Jun 03 '24 08:06 krisctl

亲爱的 ,

此问题应由最新版本的 matlab-proxy 和 jupyter-matlab-proxy 解决。

您能否使用以下命令升级这些软件包:

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

并使用以下命令验证升级是否完成:

pip list | Select-String "matlab-proxy"在 PowerShell 中。

如果升级后的程序包解决了此问题,请告知我们。

Very good work, permission issue has been resolved

Rabbits-sys avatar Jun 14 '24 08:06 Rabbits-sys