Open pplonski opened 2 years ago
Parts of nbvonvert should work as is -- I'd need to give it a try on PyScript or something similar to confirm. But some of the conversions rely on latex or other system packages that wouldn't be available in a browser system. For the chromium pdf converstion we'd want to change it to use the active browser DOM instead of launching a process.
What about without the Latex and pdf, only HTML generator? I found that tornado is needed as a dependancy and it cant be installed with Pyodide. Any thoughts on a solution?
It is now somewhat possible to run nbconvert in this forthcoming jupyterlite PR: https://github.com/jupyterlite/jupyterlite/pull/756#issuecomment-1214554290
It would take a lot of polish to be actually useful.
In passing, here's a jupyterlab anywidget — innovationOUtside/jupyter_anywidget_pandoc
— that loads pandoc wasm
and lets you run pandoc
in the browser from within a pyodide kernel; jupyterlite base environment also needs anywidget
installed in the pyodide kernel for this to run. (Does not currently work in xeus kernel.)
It is possible to compile nbconvert to WebAssembly? Ive seen JupyterLite and Pyodide are using WASM. Is it possible to run nbconvert in the web browser?