Replies: 2 comments 13 replies
-
You run a lightweight web server in a background thread, and then point your app's web browser at that server. The positron-static example demonstrates this. Alternatively, if it's a single static page of content, you can read the HTML file and set the raw HTML content on the web page. However, this won't work if there are any local URL references on the page. Any images or CSS etc need to be embedded on the page, or linked from an external web server. |
Beta Was this translation helpful? Give feedback.
-
I've tried your example; and I see the same. However, if I replace the content with a simple I have no experience with Bokeh, so I can't provide any advice on what is going on here. My suspicion would be that JS block that is doing the rendering is either (a) not being invoked due to the exact events it is depending on, or (b) is rendering at a size or location that isn't on the page (e.g., zero size, or at an x,y coordinate that is off the page). |
Beta Was this translation helpful? Give feedback.
-
I want to access the .html file in the local, how to serve local file content by using toga.WebView?
Beta Was this translation helpful? Give feedback.
All reactions