Skip to content

Instantly share code, notes, and snippets.

View ganindu7's full-sized avatar

Ganindu Nanayakkara ganindu7

View GitHub Profile
@ganindu7
ganindu7 / systemd_pyenv.md
Last active April 18, 2023 08:33
Using a virtual python environment within a service.

To use a specific pyenv environment in a systemd service, you'll need to provide the path to the desired Python interpreter in the virtual environment and set the environment variable PATH accordingly in the service file.

Here's a step-by-step guide to crafting a systemd service file that uses a pyenv virtual environment:

  1. Find the path to the desired Python interpreter in the virtual environment.

You can do this by running the following command (replace <your_virtualenv> with the name of your virtual environment):

$ pyenv which python -p <your_virtualenv>
@ganindu7
ganindu7 / simplified_model_flow_fail.ipynb
Created June 14, 2023 09:11
I craftef this reference notebook to debug a problem where TAO training was getting stuck
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.