mathworks / jupyter-matlab-proxy

MATLAB Integration for Jupyter enables you to run MATLAB code in Jupyter Notebooks and other Jupyter environments. You can also open MATLAB in a browser directly from your Jupyter environment to use more MATLAB features.
Other
284 stars 36 forks source link

URL error with Deep Learning Network Analyzer #45

Closed ghost closed 6 months ago

ghost commented 1 year ago

Hey,

Opening a neural net using analyzeNetwork(net) opens an iframe with the url http://127.0.0.1:8888/matlab/matlab/static/... which gives a page not found error. The correct url is http://127.0.0.1:8888/matlab/static/.... Changing the iframe's url via the web inspector or opening the correct url in a new tab shows the desired page.

I was able to reproduce this issue using the docker file provided in Matlab-integration-for-jupyter and executing one of the Deep Learning Toolbox examples which uses the analyzeNetwork function.

My thought process looking into this was that MWI_BASE_URL gets added at some point to a url that already had MWI_BASE_URL but couldn't easily find anything related to this in Jupyter-matlab-proxy or in Matlab-proxy.

Note when reproducing: The only network that comes included in Deep Learning Toolbox is squeezenet so the net variable in the example should be changed from googlenet to squeezenet.

prabhakk-mw commented 1 year ago

Hi @oscar-love-mv

Thank you for reporting this issue! Over the next few days, I'll attempt to reproduce this at my end and begin the investigation process on our end.

Would you please help me with the following information:

  1. Which version of MATLAB did you try this with? Does the behavior change when you use the latest version (R2023a).
  2. Does setting the MWI_BASE_URL value to / resolve the issue?
     env MWI_BASE_URL=/ matlab-proxy-app

    I realize this approach will not work with Jupyter, as it specifically sets the MWI_BASE_URL=/matlab automatically.

Thank you for your support!

ghost commented 1 year ago

Hey @prabhakk-mw,

I'm using version R2023a.

Executing matlab-proxy-app as described resolves the issue.

As an extra test I executed the command above with MWI_BASE_URL set to /matlab and can reproduce the issue.

Thank you for looking into this.