openOrReveal HTML or PDF file in jupyterlab extension

With jupyterlab-3 I don’t manage to open HTML or PDF file in my extension with openOrReveal.
The problem occur with firefox but not with google-chrome.

for HTML I tried:



 this._docmanager.openOrReveal(path, "HTML Viewer");

If the filepath is a notebook file: ok (With the first test of course)
If the filepath is an HTML or PDF file:

The page is refresh and the file is note open.

If anybody had an idea…


Se here for a workaround: OpenOrReveal HTML file on firefox · Issue #9553 · jupyterlab/jupyterlab · GitHub

1 Like