Closed
Description
Description
The client-side notebook preview functionality has not been backported from the original gogs repo.
https://try.gogs.io/niklas/ipynb-test/src/master/README.ipynb
https://try.gitea.io/memetb/test-ipynb/src/branch/master/Untitled.ipynb
Issue #3025 mentions using RENDER_COMMAND = jupyter nbconvert --to html --stdin --stdout
however, there are multiple reasons why this can be problematic:
- server side-rendering of jupyter notebooks requires the installation of anaconda. This defeats the purpose of having a lightweight executable that can be deployed on a raspberry pi.
- executing jupyter on large notebooks is slow.
- having to execute a python interpreter on user data is not safe and would require chrooting the whole thing if a sys-admin needs to be thorough.