Python: Difference between revisions
m Add an example of using the new command line to spawn a shell with python and custom modules. |
m shows instructions on how to obtain a CPython interpreter that uses debug build, related to this new PR: https://github.com/NixOS/nixpkgs/pull/409943 |
||
Line 630: | Line 630: | ||
You can also set <code>backend : GTK3Agg</code> in your <code>~/.config/matplotlib/matplotlibrc</code> file to avoid having to call <code>matplotlib.use('gtk3agg')</code>. | You can also set <code>backend : GTK3Agg</code> in your <code>~/.config/matplotlib/matplotlibrc</code> file to avoid having to call <code>matplotlib.use('gtk3agg')</code>. | ||
== Debug Build == | |||
See [https://docs.python.org/3/using/configure.html#python-debug-build python wiki on debug build]. | |||
In order to use a CPython interpreter built using `--with-pydebug` during configure phase, override any of the python packages passing `enableDebug = true` argument: | |||
<code>pythonDebug = pkgs.python310.override { enableDebug = true; };</code> | |||
== Performance == | == Performance == |