Opened 19 months ago
Last modified 4 months ago
#2939 new task
Render jupyter notebooks in html in gitea
Reported by: | robe | Owned by: | strk |
---|---|---|---|
Priority: | normal | Milestone: | Sysadmin Contract 2024-I |
Component: | SysAdmin/Gitea | Keywords: | |
Cc: |
Description (last modified by )
Per request of darkblueb.
Steps more or less detailed here - https://blog.gitea.io/2022/04/how-to-render-jupyter-notebooks-on-gitea/
But had to install ipython as well so:
sudo apt install python3-pip pip3 install nbconvert pip3 install ipython pip3 install docutils
and then added in the respective lines.
But I think I need to do something to enable css and strip the html cause it looks funny.
This is detailed here - https://docs.gitea.com/next/administration/external-renderers
and I didn't read the docs completely in the above. It does talk about styling.
You can see an example here:
There is also other things like rendering mathjax as detailed in this thread
Change History (5)
comment:1 by , 19 months ago
Milestone: | Unplanned → Sysadmin Contract 2023-I |
---|
comment:2 by , 19 months ago
Description: | modified (diff) |
---|
comment:3 by , 15 months ago
Component: | Systems Admin → Gitea |
---|---|
Owner: | changed from | to
comment:4 by , 12 months ago
Milestone: | Sysadmin Contract 2023-I → Sysadmin Contract 2024-I |
---|
comment:5 by , 4 months ago
Gitea is now deployed via Ansible so you might provide a pull request with changes into the configuration file: https://git.osgeo.org/gitea/sac/ansible-deployment/src/branch/master/deployment/roles/gitea/templates/app.ini.j2
And changes to the main task to install required packages: https://git.osgeo.org/gitea/sac/ansible-deployment/src/branch/master/deployment/roles/gitea/tasks/main.yml
Example of adding packages via apt: https://git.osgeo.org/gitea/sac/ansible-deployment/src/branch/master/deployment/roles/trac/tasks/main.yml#L1
Moving my prior still open items to the next proposed Milestone