1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-13 09:20:09 +00:00
Commit graph

12 commits

Author SHA1 Message Date
Marc Cornellà
a84bc2dadd
fix(python)!: remove harmful ipython alias (#12676)
BREAKING CHANGE: the `ipython` alias was incorrectly trying to manually call
ipython from the installed module in the virtual environment, when actually
a command already exists when loading the virtual environment. This change
removes the unnecessary alias and allows calling the right command.

Fixes #12676
2024-09-15 15:12:22 +02:00
Michael Gonzo
22bbc233e9
feat(python): autovenv keeps activated on subdirs (#12396)
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
2024-05-07 21:30:23 +02:00
Robert Crews
12cd3b3e39
feat(python): add auto venv activation (#12248)
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
2024-03-03 13:04:19 +01:00
MikuHatsune39
ddf673b36d
fix(python): set py alias if py is not installed (#12059)
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
2023-11-24 09:35:46 +01:00
Carlo Sala
0818df057c
fix: use python3 for all python invocations (#10832) 2022-04-09 14:45:42 +02:00
vladislav doster
9c01dbc30b
chore(python): minor corrections on README (#10548)
Closes #10548
2021-12-31 20:19:40 +01:00
Marijan Smetko
02eb548d5a
feat(python): add utilities to manage simple virtual environments (#9776)
Closes #9776
2021-12-29 15:57:17 +01:00
Celestino Gomes
3e2676f7dc
feat(python): add pyserver alias to start an HTTP server (#10217)
Closes #10217
2021-12-29 15:44:25 +01:00
Dani Torramilans
56ab66b194
docs(python): update README to include new py alias (#9995) 2021-10-04 15:57:03 +02:00
0b10
72707d92b1
python: add pyuserpaths function (#7758)
Summary
    Make it get a list of installed interpreters, and add the
    relevant local (HOME) site-packages directory to PYTHONPATH.

    Reason
    To easily add all relevant paths, initially, and between upgrades.

Add check for PYTHONUSERBASE

    Summary
    Check for a non-standard install directory, use it if one
    exists, otherwise use ~/.local.

    Reason
    Allow users to specify their own installation directory, without
    affecting functionality.
2020-03-02 13:38:44 +01:00
Petr Bělohlávek
6b54302b90 python: add alias to run the proper IPython based on virtualenv
Current state: a user invokes `ipython` and is provided with the IPython
instance regarding the `$PATH`.

Proposed state: a user invokes `ipython` (which is a new alias in the
*python plugin*) and is provided with the proper IPython instance regarding
the currently activated virtualenv.

Example: the user's default Python is 2.7 with installed IPython 2.7. User
activates Python 3.5 virtualenv where he installs IPython 3.5. After
activating the environment, one expects `ipython` to run the version 3.5,
which does not happen by default. Instead, IPython 2.7 is used, which in
counter-intuitive and often causes problem.

Closes #5797
2020-02-27 17:17:01 +01:00
Sagar Patil
0fdb911da0 python: add README (#7191) 2018-10-02 23:51:14 +02:00