Manage Your Python Project Using Poetry

Posted on Mar 02, 2019 in Computer Science • Tagged with programming, Python, poetry, build tool, dependency management

Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.

uv (implemented in Rust) is the new cool kid now and is prefer to poetry.

Tips and Traps

  1. Python Poetry is current the best project management tool …


Continue reading

Managing Virtual Environments in Poetry

Posted on Dec 25, 2019 in Computer Science • Tagged with programming, Python, Poetry, virtual environment, shell

Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.

uv (implemented in Rust) is the new cool kid now and is prefer to poetry.

Where to Create Virtual Environments

By default, Poetry create virtual environment in …


Continue reading

Tips on yapf

Posted on Jul 08, 2019 in Computer Science • Tagged with programming, Python, yapf, code formatting

Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.

Black is preferred to yapf!

yapf Online Demo

  1. There are 4 predefined styles: google, facebook, chromium, and pep8. You can specify a style to use using the …


Continue reading

Bash Equivalent of the ifmain Pattern in Python

Posted on Jul 28, 2022 in Computer Science • Tagged with Computer Science, programming, Shell, Bash, ifmain, Python, module, script, function, import, source

Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.

Fish Shell is preferred to Bash/Zsh. The following content is for Bash/Zsh only.

#!/usr/bin/env bash

function install_icon.usage() {
    cat << EOF
NAME
    /scripts/sys …

Continue reading

Tips on Conda

Posted on Apr 22, 2018 in Computer Science • Tagged with programming, Python, conda, tips, Anaconda Python

Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.

  1. conda and executables installed by conda might not be able to run by sudo directly. If this happends, use the full path of the executable or add …


Continue reading

Visualization Using Bokeh in Python

Posted on Jul 22, 2017 in Computer Science • Tagged with programming, Python, visualization, Bokeh, Bokeh server, tips

Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.

** Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives. **

HoloViews and hvplot are …


Continue reading