Hi @hogi ,
Thank you for starting this discussion. What you are trying to do is something that used to be available in file sharing applications, like OneDrive, GoogleDrive, and Drop Box, but they all eventually dropped support for it. I suspect one of the reasons could have been to avoid the responsibility of security risks in allowing the end user to open a web site with potentially harmful JavaScript code. In response to this limiting users ability to share their Interactive HTML content safely and to provide JMP specific enhancements, we created JMP Live.
I don't know if Teams Channels or SharePoint provide support for this capability, but it may be turned off by default.
I tried a simpler html example than what JMP produces and found the following in the browser debugging console when trying to view it in SharePoint:
"Blocked script execution in 'about:srcdoc' because the document's frame is sandboxed and the 'allow-scripts' permission is not set"
I believe this is referring to the JavaScript code in the HTML file. Unfortunately, I don't have access to a setting that allows SharePoint to grant this permission. It may be a setting available to the SharePoint administrator. I suspect this would be the same with html pages with JavaScript output from any other application.
I had less success with Teams Channels, since I was unable to open the browser console, but I suspect the same security restriction is limiting the display of HTML files requiring JavaScript to display.
Perhaps someone with more experience with SharePoint or Teams Channels administration would know how to enable viewing web pages using JavaScript in these systems.
~John