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

URL error with Deep Learning Network Analyzer

Open oscar-love-mv opened this issue 1 year ago • 2 comments

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.

oscar-love-mv avatar Jul 07 '23 23:07 oscar-love-mv

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!

prabhakk-mw avatar Jul 10 '23 13:07 prabhakk-mw

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.

ghost avatar Jul 10 '23 15:07 ghost