Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Worse Features in Latest Version #101

Closed
fcyang58 opened this issue Oct 26, 2024 · 2 comments
Closed

Worse Features in Latest Version #101

fcyang58 opened this issue Oct 26, 2024 · 2 comments
Assignees
Labels
answered Issue has been answered question Further information is requested

Comments

@fcyang58
Copy link

Summary

I have used MATLAB on jupyterlab for two years. Recently, I moved to a new server, and I install jupyter-matlab-proxy on it. I have no trouble to run MATLAB through jupyter notebook but the behavior becomes terrible compared with previous versions.

How do I install and work on new server?

  1. I create a new environment via: conda create -n "py39" python=3.9
  2. In this environment, I install jupyterlab and jupyter-matlab-proxy via: pip install xxx
  3. I already have MATLAB R2022b on this server
  4. I run jupyterlab and use MATLAB kernel via: jupyter lab --no-browser --port=2345 --notebook-dir /xxx

What do I mean by 'worse features'?

  1. If a piece of MATLAB code written in the notebook cell runs for over 5 minutes, I will get an error and MATLAB will be shut down. In the server I previously used, I did not have such error.
  2. The results output to the screen in a strange way. For example, for a simple loop:
    for m=1:3
    pause(3)
    m
    end
    I will expect to see numbers '1', '2', and '3' every 3 seconds. However, in the new server, all three numbers are output together after the loop finished.
  3. When I open multiple notebooks with MATLAB kernel, all these notebooks will share the memory space. For example, if I define aa1=1 in notebook1 and then open a new notebook2, I can see variable aa1 by whos in notebook2. In my previous experience, notebooks will not share memory.

I installed matlab proxy two years ago on both my local computer and the old server. These features are not found in both of them. Are these problem due to the new server or matlab proxy? Could anyone help me?

Here attached pip list on the new server and my local computer.

local_MacOS.txt
new_server.txt

Browser(s) used

Chrome

Issue found in

MATLAB Kernel

Script output

No response

@fcyang58 fcyang58 added bug Something isn't working needs-triage labels Oct 26, 2024
@prabhakk-mw prabhakk-mw self-assigned this Oct 29, 2024
@prabhakk-mw prabhakk-mw added question Further information is requested and removed bug Something isn't working needs-triage labels Oct 29, 2024
@prabhakk-mw
Copy link
Member

Dear @fcyang58

Thank you for using the MATLAB Integration for Jupyter and for the detailed explanations in the issue!

Based on the shared local_MacOS.txt file and the description of the issues,
its evident that you have been using the MATLAB Kernel coming from the matlab-kernel package, and have only just started using the jupyter-matlab-proxy package that this repository ships on the "new server".

All the three issues listed above, have been a part of this package from the day it shipped in 2020.

Fortunately, we have been working behind the scenes on improvements to the package which should address all your concerns in the near future.

  1. The issue related to cell time out has been captured in Cell timeout after 5 mins #77, and we are actively working on infrastructure to avoid this issue.
  2. The support for streaming outputs is currently under development, and Support for streaming outputs #102 has been created for you to track its progress.
  3. The behavior related to the shared MATLAB workspace amongst kernels is documented here and we do have plans of releasing a MAGIC command to change this behavior in the near future. Please use Provide a way to isolate notebooks from each other. Provide One MATLAB per notebook. #103 / Prevent process/variable space sharing on multi-user setups #44 to track the progress of this feature.

Kindly accept my apologies for any inconvenience that these issues have caused and we hope to meet your expectations soon!

@prabhakk-mw prabhakk-mw added the answered Issue has been answered label Oct 29, 2024
@fcyang58
Copy link
Author

Yes. I just found that I was using matlab-kernel. It is very good and probably your team can work with their team to improve matlab proxy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered Issue has been answered question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants