Viewing Live Script in viewer.mathworks.com
10 views (last 30 days)
Show older comments
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
0 Comments
Answers (1)
Karan Singh
on 31 Jan 2025
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 Comment
Steve Van Hooser
on 2 Feb 2025
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
See Also
Categories
Find more on Language Support in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!