diff options
author | Pjotr Prins | 2023-12-03 09:43:06 -0600 |
---|---|---|
committer | Pjotr Prins | 2023-12-03 09:43:06 -0600 |
commit | aa3d310aa257f0ef0a8636272883c3c4e6855a1c (patch) | |
tree | 9ac85bf43abd92f897dc801e7515daaff5232120 /topics/python/running_pudb_from_external_environment.gmi | |
parent | f63f9df201c3ae57ad8b52cf5127995c82944be7 (diff) | |
download | gn-gemtext-aa3d310aa257f0ef0a8636272883c3c4e6855a1c.tar.gz |
Moving files
Diffstat (limited to 'topics/python/running_pudb_from_external_environment.gmi')
-rw-r--r-- | topics/python/running_pudb_from_external_environment.gmi | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/topics/python/running_pudb_from_external_environment.gmi b/topics/python/running_pudb_from_external_environment.gmi new file mode 100644 index 0000000..a533e22 --- /dev/null +++ b/topics/python/running_pudb_from_external_environment.gmi @@ -0,0 +1,30 @@ +# Running pudb From an External Environment + +This documentation is now obsolete since pudb was added as a package in GNU Guix + +Currently (22nd December 2021), it is a tad difficult to get pudb running under the various guix environments without having to update a lot of stuff. This documents a workaround that seems to work for me (@fredm). + +## GeneNetwork3 + +1) Install pudb in a virtual environment: + +* $ python -m venv pudb_env + +2) Activate the environment and install pudb: + +* $ source pudb_env/bin/activate +* $ pip install pudb + +3) Run the GN3 container, exposing the new virtual environment with something like: + +* env GUIX_PACKAGE_PATH=~/genenetwork/guix-bioinformatics/ ~/.config/guix/current/bin/guix environment -C --network --expose="$HOME/genotype_files/"="${HOME}/genotype_files" --expose="${HOME}/genenetwork/pudb_env/"="${HOME}/pudb_env" --load=guix.scm + +4) Inside the container, run the debugger with something like: + +* env PYTHONPATH="${PYTHONPATH}:${HOME}/pudb_env/lib/python3.8/site-packages" ... python3 -m pudb script.py + +## Tags + +* type: documentation +* keywords: pudb +* status: obsolete |