[SAC] [OSGeo] #2939: Render jupyter notebooks in html in gitea

#2939: Render jupyter notebooks in html in gitea
---------------------------+-----------------------
Reporter: robe | Owner: sac@…
     Type: task | Status: new
Priority: normal | Milestone: Unplanned
Component: Systems Admin | Keywords:
---------------------------+-----------------------
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
}}}

and then added in the respective lines.

But I think I need to do somethng to enable css and strip the html cause
it looks funny.

You can see an example here:

https://dev.git.osgeo.org/gitea/osgeolive/OSGeoLive-
Notebooks/src/branch/master/Shapely/shapely-point-in-poly.ipynb

There is also other things like rendering mathjax as detailed in this
thread
--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2939&gt;
OSGeo <Gter - OSGeo;
OSGeo committee and general foundation issue tracker.

#2939: Render jupyter notebooks in html in gitea
---------------------------+---------------------------------------
Reporter: robe | Owner: sac@…
     Type: task | Status: new
Priority: normal | Milestone: Sysadmin Contract 2023-I
Component: Systems Admin | Resolution:
Keywords: |
---------------------------+---------------------------------------
Changes (by robe):

* milestone: Unplanned => Sysadmin Contract 2023-I

--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2939#comment:1&gt;
OSGeo <https://osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#2939: Render jupyter notebooks in html in gitea
---------------------------+---------------------------------------
Reporter: robe | Owner: sac@…
     Type: task | Status: new
Priority: normal | Milestone: Sysadmin Contract 2023-I
Component: Systems Admin | Resolution:
Keywords: |
---------------------------+---------------------------------------
Description changed by robe:

Old description:

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
}}}

and then added in the respective lines.

But I think I need to do somethng to enable css and strip the html cause
it looks funny.

You can see an example here:

https://dev.git.osgeo.org/gitea/osgeolive/OSGeoLive-
Notebooks/src/branch/master/Shapely/shapely-point-in-poly.ipynb

There is also other things like rendering mathjax as detailed in this
thread

New description:

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:

https://dev.git.osgeo.org/gitea/osgeolive/OSGeoLive-
Notebooks/src/branch/master/Shapely/shapely-point-in-poly.ipynb

There is also other things like rendering mathjax as detailed in this
thread

--
--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2939#comment:2&gt;
OSGeo <https://osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#2939: Render jupyter notebooks in html in gitea
--------------------+---------------------------------------
Reporter: robe | Owner: strk
     Type: task | Status: new
Priority: normal | Milestone: Sysadmin Contract 2023-I
Component: Gitea | Resolution:
Keywords: |
--------------------+---------------------------------------
Changes (by strk):

* owner: sac@… => strk
* component: Systems Admin => Gitea

--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2939#comment:3&gt;
OSGeo <https://osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.