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

Symbolic Toolbox Rendering Fails with MATLAB Kernel #104

Open
anishgoyal1108 opened this issue Oct 30, 2024 · 1 comment
Open

Symbolic Toolbox Rendering Fails with MATLAB Kernel #104

anishgoyal1108 opened this issue Oct 30, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@anishgoyal1108
Copy link

Summary

Version:

  • jupyter_matlab_proxy: 0.15.2
  • MATLAB: R2024a Update 6 (24.1.0.2689473)
  • Python: 3.10.13
  • Jupyter Lab: 4.3.0

Environment:

  • OS: Arch Linux
  • Browser: Firefox

Description:
The rendering of the symbolic toolbox fails when executing even the simplest symbolic expression. The expected output is not produced, and an error message is displayed instead.

Steps to Reproduce:

  1. Launch Jupyter Lab.
  2. Create a new MATLAB notebook.
  3. Execute the following code:
    sym x
    x

Expected Behavior:
The expected behavior is that the symbolic variable x should be displayed without any errors.

Actual Behavior:
The following error message is displayed instead:

MATLAB Kernel Error:
Error using <a href="matlab:matlab.lang.internal.introspective.errorDocCallback('matlab.internal.cef.webwindow', '/opt/matlab/toolbox/matlab/cefclient/+matlab/+internal/+cef/webwindow.m', 403)" style="font-weight:bold">matlab.internal.cef.webwindow</a> (<a href="matlab: opentoline('/opt/matlab/toolbox/matlab/cefclient/+matlab/+internal/+cef/webwindow.m',403,0)">line 403</a>)
MATLABWindow application failed to launch. Unable to launch the MATLABWindow application. The exit code was: 1
Error in <a href="matlab:matlab.lang.internal.introspective.errorDocCallback('jupyter.execute>processSymbolic', '/home/anish/.pyenv/versions/3.10.13/lib/python3.10/site-packages/jupyter_matlab_kernel/matlab/+jupyter/execute.m', 218)" style="font-weight:bold">jupyter.execute>processSymbolic</a> (<a href="matlab: opentoline('/home/anish/.pyenv/versions/3.10.13/lib/python3.10/site-packages/jupyter_matlab_kernel/matlab/+jupyter/execute.m',218,0)">line 218</a>)
    webwindow = matlab.internal.cef.webwindow(connector.getUrl(url));
Error in <a href="matlab:matlab.lang.internal.introspective.errorDocCallback('jupyter.execute>processOutputs', '/home/anish/.pyenv/versions/3.10.13/lib/python3.10/site-packages/jupyter_matlab_kernel/matlab/+jupyter/execute.m', 124)" style="font-weight:bold">jupyter.execute>processOutputs</a> (<a href="matlab: opentoline('/home/anish/.pyenv/versions/3.10.13/lib/python3.10/site-packages/jupyter_matlab_kernel/matlab/+jupyter/execute.m',124,0)">line 124</a>)
            result{ii} = processSymbolic(outputData);
Error in <a href="matlab:matlab.lang.internal.introspective.errorDocCallback('jupyter.execute', '/home/anish/.pyenv/versions/3.10.13/lib/python3.10/site-packages/jupyter_matlab_kernel/matlab/+jupyter/execute.m', 54)" style="font-weight:bold">jupyter.execute</a> (<a href="matlab: opentoline('/home/anish/.pyenv/versions/3.10.13/lib/python3.10/site-packages/jupyter_matlab_kernel/matlab/+jupyter/execute.m',54,0)">line 54</a>)
result = processOutputs(resp.outputs);
Error in <a href="matlab:matlab.lang.internal.introspective.errorDocCallback('processJupyterKernelRequest', '/home/anish/.pyenv/versions/3.10.13/lib/python3.10/site-packages/jupyter_matlab_kernel/matlab/processJupyterKernelRequest.m', 54)" style="font-weight:bold">processJupyterKernelRequest</a> (<a href="matlab: opentoline('/home/anish/.pyenv/versions/3.10.13/lib/python3.10/site-packages/jupyter_matlab_kernel/matlab/processJupyterKernelRequest.m',54,0)">line 54</a>)
            output = jupyter.execute(code, kernelId);
Error in connector.internal.fevalMatlab
Error in connector.internal.fevalJSON

Additional Information:

  • The issue seems to persist across different sessions and with various symbolic expressions.
  • No modifications have been made to the MATLAB installation that could affect the symbolic toolbox.

Browser(s) used

Firefox

Issue found in

MATLAB Kernel

Script output

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
                                                                                            MATLAB
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

matlab - /usr/local/bin/matlab OK

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
                                                                                       matlab-proxy-app
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

matlab-proxy-app - /home/anish/.pyenv/versions/3.10.13/bin/matlab-proxy-app OK

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
                                                                                           Jupyter
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

jupyter - /home/anish/.pyenv/versions/3.10.13/bin/jupyter OK

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
                                                                                  Python and pip executables
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

python - /home/anish/.pyenv/versions/3.10.13/bin/python OK

Python 3.10.13

pip - /home/anish/.pyenv/versions/3.10.13/bin/pip OK

pip 24.1.2 from /home/anish/.pyenv/versions/3.10.13/lib/python3.10/site-packages/pip (python 3.10)

python3 - /home/anish/.pyenv/versions/3.10.13/bin/python3 OK

Python 3.10.13

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
                                                                                             Xvfb
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Xvfb - /usr/bin/Xvfb OK

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
                                                                                        OS information
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Linux
6.11.5-zen1-1-zen
Linux-6.11.5-zen1-1-zen-x86_64-with-glibc2.40
uname_result(system='Linux', node='archlinux', release='6.11.5-zen1-1-zen', version='#1 ZEN SMP PREEMPT_DYNAMIC Tue, 22 Oct 2024 18:31:33 +0000', machine='x86_64')


----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
                                                                                      Conda information
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

conda - /opt/anaconda/condabin/conda

conda 24.9.2

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
                                                                                      Installed packages
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

jupyter_ai                  2.26.0
jupyter_ai_magics           2.26.0
jupyter_client              8.6.0
jupyter_core                5.7.1
jupyter-events              0.10.0
jupyter-lsp                 2.2.5
jupyter-matlab-proxy        0.15.2
jupyter_server              2.14.2
jupyter_server_proxy        4.4.0
jupyter_server_terminals    0.5.3
jupyterlab                  4.3.0
jupyterlab_pygments         0.3.0
jupyterlab_server           2.27.3
matlab-proxy                0.23.1
notebook                    7.2.2
notebook_shim               0.2.4

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
                                                                                  Jupyter server extensions
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Config dir: /home/anish/.jupyter

Config dir: /home/anish/.pyenv/versions/3.10.13/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_ai enabled
    - Validating jupyter_ai...
/home/anish/.pyenv/versions/3.10.13/lib/python3.10/importlib/__init__.py:126: LangChainDeprecationWarning: As of langchain-core 0.3.0, LangChain uses pydantic v2 internally. The langchain_core.pydantic_v1 module was a compatibility shim for pydantic v1, and should no longer be used. Please update the code to import from Pydantic directly.

For example, replace imports like: `from langchain_core.pydantic_v1 import BaseModel`
with: `from pydantic import BaseModel`
or the v1 compatibility namespace if you are working in a code base that has not been fully upgraded to pydantic 2 yet.         from pydantic.v1 import BaseModel

  return _bootstrap._gcd_import(name[level:], package, level)
/home/anish/.pyenv/versions/3.10.13/lib/python3.10/site-packages/pydantic/_internal/_config.py:341: UserWarning: Valid config keys have changed in V2:
* 'allow_population_by_field_name' has been renamed to 'populate_by_name'
  warnings.warn(message, UserWarning)
       X The `__modify_schema__` method is not supported in Pydantic v2. Use `__get_pydantic_json_schema__` instead in class `SecretStr`.

    For further information visit https://errors.pydantic.dev/2.9/u/custom-json-schema
    jupyter_server_terminals enabled
    - Validating jupyter_server_terminals...
      jupyter_server_terminals 0.5.3 OK
    jupyterlab enabled
    - Validating jupyterlab...
      jupyterlab 4.3.0 OK
    notebook enabled
    - Validating notebook...
      notebook 7.2.2 OK
    notebook_shim enabled
    - Validating notebook_shim...
      notebook_shim  OK

Config dir: /usr/local/etc/jupyter

JupyterLab v4.3.0
/home/anish/.pyenv/versions/3.10.13/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-ai/core v2.26.0 enabled OK (python, jupyter_ai)
        @jupyter-notebook/lab-extension v7.2.2 enabled  X


   The following extensions may be outdated or specify dependencies that are incompatible with the current version of jupyterlab:
        @jupyter-notebook/lab-extension

   If you are a user, check if an update is available for these packages.
   If you are a developer, re-run with `--verbose` flag for more details.
@prabhakk-mw
Copy link
Member

@rashedmyt , could you please investigate?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants