В блокноте jupyter можно было отображать локальные PDF-файлы, такие как
from IPython.display import IFrame
IFrame("./path/to.pdf", width=600, height=300)
Однако в JupyterLab это просто создает пустую рамку и выдает предупреждение
renderers.js:430 Resource interpreted as Document but transferred with MIME type application/pdf
, а затем ошибку
Failed to load 'http://localhost:8888/files/path/to.pdf?1554301584935' as a plugin, because the frame into which the plugin is loading is sandboxed.
Есть ли возможность по-прежнему отображать локальные PDF-файлы, передавая путь к функции python в JupyterLab?