Viewing Live Script in viewer.mathworks.com
9 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
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
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 Center 和 File Exchange 中查找有关 Language Support 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!