How can I open an html file in PyCharm from code?

I am developing a plugin for PyCharm. I use Pyan3 to generate a static graph. Pyan3 gives me an HTML file as a result, which I want to display in PyCharm.

I tried with the webbrowser, but I couldn't find a solution

import webbrowser
import os

webbrowser.open('file://' + os.path.realpath('myuses2.html'))

Is it possible to open the html file inside pyCharm? (from code line) 


0

Please sign in to leave a comment.