Viewing Live Script in viewer.mathworks.com
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:
https://viewer.mathworks.com/?viewer=live_code&url=https%3A%2F%2Fwww.mathworks.com%2Fmatlabcentral%2Fmlc-downloads%2Fdownloads%2F84c22101-bffc-435a-910c-b0c7dcd5b386%2F4dd1b338-1032-45d1-b894-d1779b6d28f2%2Ffiles%2Fexamples%2Ftiny_ephys_inference.mlx&embed=web
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?
https://viewer.mathworks.com/?viewer=live_code&url=https%3A%2F%2Fgithub.com%2FMATLAB-Community-Toolboxes-at-INCF%2FDeepInterpolation-MATLAB%2Fraw%2Fmain%2Fexamples%2Ftiny_ephys_inference.mlx&embed=web
The broader issue is, is there any recommended way to keep a link to the "current" version instead of to a specific version?
Thanks
SteveHi –
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:
https://viewer.mathworks.com/?viewer=live_code&url=https%3A%2F%2Fwww.mathworks.com%2Fmatlabcentral%2Fmlc-downloads%2Fdownloads%2F84c22101-bffc-435a-910c-b0c7dcd5b386%2F4dd1b338-1032-45d1-b894-d1779b6d28f2%2Ffiles%2Fexamples%2Ftiny_ephys_inference.mlx&embed=web
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?
https://viewer.mathworks.com/?viewer=live_code&url=https%3A%2F%2Fgithub.com%2FMATLAB-Community-Toolboxes-at-INCF%2FDeepInterpolation-MATLAB%2Fraw%2Fmain%2Fexamples%2Ftiny_ephys_inference.mlx&embed=web
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 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:
https://viewer.mathworks.com/?viewer=live_code&url=https%3A%2F%2Fwww.mathworks.com%2Fmatlabcentral%2Fmlc-downloads%2Fdownloads%2F84c22101-bffc-435a-910c-b0c7dcd5b386%2F4dd1b338-1032-45d1-b894-d1779b6d28f2%2Ffiles%2Fexamples%2Ftiny_ephys_inference.mlx&embed=web
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?
https://viewer.mathworks.com/?viewer=live_code&url=https%3A%2F%2Fgithub.com%2FMATLAB-Community-Toolboxes-at-INCF%2FDeepInterpolation-MATLAB%2Fraw%2Fmain%2Fexamples%2Ftiny_ephys_inference.mlx&embed=web
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 viewer.mathworks.com, community toolbox documentation MATLAB Answers — New Questions