Closed vemonet closed 2 years ago
Dear @vemonet
Thank you for reporting this issue. Based on our conversation, we had concluded that the issue reported here has is from the mathworks/matlab image on Dockerhub, when used via the noVNC access options.
I will escalate and fix the issues with the Dockerhub container images internally, and email you when fixes to them have been published on Dockerhub.
That said, I do have an alternative approach to installing MATLAB into your the container image of your choice. Introducing MPM, which is short for MATLAB Package Manager. MPM is a command line package manager for MathWorks products. It enables you to install MATLAB and its toolboxes programmatically on a Linux environment. It provides options to specify the release of MATLAB that you want to install and the destination for installation. You can install MATLAB and any specified combination of MATLAB toolboxes. You can use mpm to build MATLAB Docker containers.
For example:
mpm install --release=R2021b --destination=/home/username/matlab MATLAB Simulink Deep_Learning_Toolbox Parallel_Computing_Toolbox
This Dockerfile is a good example, which showcases the installation of MATLAB into an existing base layer, in this case jupyter/base-notebook
.
Given that the reported issue, has not to do with the Jupyter integration. I am closing this issue, and will circle back with @vemonet when a fix to the issue has been propagated to the Docker hub containers.
A few months ago we shared a major issue https://github.com/mathworks-ref-arch/matlab-integration-for-jupyter/issues/2 that was completely preventing the use of Matlab in cloud computing infrastructure (where we expect matlab to be runnings for days as a service without being restarted every 2 hours)
It has been considered as "resolved" with this fix proposed by @prabhakk-mw :
For other peoples who are also trying to use the Matlab products they have paid for: we found a way to do it in a stable way: https://github.com/vemonet/docker-ubuntu-vnc-desktop to run a remote ubuntu desktop, then you just go to firefox and install matlab manually (yes that's ridiculous! But that works, and gives a stable image.)