Viewing Live Script in viewer.mathworks.com

조회 수: 3 (최근 30일)
Stephen
Stephen 2023년 11월 8일
댓글: Steve Van Hooser 2025년 2월 2일
Hi -
I am the steward for some open source projects, and we want to be able to include links to view the output of Matlab Live Scripts on the web.
There are several links like this on the File Exchange, for example one such link from https://www.mathworks.com/matlabcentral/fileexchange/134991-deepinterpolation-matlab is:
The trouble is that this links to a specific file in a specific version, and I'd like to be able to grab a Live Script from GitHub so that as the script is updated on GitHub, the viewing link always points to the latest version. Right now, I'd have to know the encoded path in FileExchange that will be generated when it updates the File Exchange version from GitHub.
But I don't seem to be able to get the viewer to read from GitHub. It is possible that I have a path error here but I have redone this a couple times and I always see "We're sorry, but something went wrong". So perhaps it's not legal to pull scripts from other places?
The broader issue is, is there any recommended way to keep a link to the "current" version instead of to a specific version?
Thanks
Steve

답변 (1개)

Karan Singh
Karan Singh 2025년 1월 31일
Hi Steve,
I think that the viewer service is tightly linked to the MathWorks Hosted file and that might be the reason github links are directly not working in your case.
Can you try a different approch like the one mentioned by Mathworks staff here How to deploy a functional live script to the web - MATLAB Answers - MATLAB Central. I think this might not be able to resolve the issue fully cause it changes your workflow. But you can give it a try.
  댓글 수: 1
Steve Van Hooser
Steve Van Hooser 2025년 2월 2일
We do offer the option of opening in Matlab online. What we're going for is a faster view so that the user who is just checking things out can look at the livescript before deciding to engage further. We think that Matlab Online, while a lesser barrier than installing the software on their own computer, is still a little bit of a barrier and we want to be able to try to attract users who might only be willing to click on a link at first.
Thanks
Steve

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Language Support에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by