blog page - 1/6¶
A trick I use sometimes to print the traceback without stopping the program.
Issue with sphinx and pybind11¶
The kind of nightmare I don’t like spending time on: [Regression] KeyError on pybind11-generated wrappers with Sphinx 3.2.
Nbconvert requires recent version of latex¶
The latest version of nbconvert which converts notebooks into latex requires recent version latex > 2016. To install a more recent version on debian:
jupyter_sphinx was recently updated and now includes a directive which lets the user run a piece of code and even modify it before running.
Slow imports and code to investigate¶
I notice that the following code was very slow:
nbconvert, tornado, incompatibilities¶
Missing signature for functions¶
Upload a single binary on PyPI¶
The packages for multiple distribution are built
on different machine but the upload takes place on
a single machine. I retrieved all available builds
and moved them to the dist folder.
.pypirc was saved into my home with
the following content:
Check RST syntax¶
It is usually a pain to discover I made an error in a
formula while I’m writing documentation. It fails
quite long after after the unit tests started. The
documentation is generated after the unit test pass.
I also use a lot
to run pieces of code inside the documentation.
It is quite annoying to discover it fails long after.
So I creates a unit test which can be used to compile a
single page of the documentation :
I modify the page name when I have some doubt or I move to