Skip to main content

A simple IPython extension to show the path and virtualenv in the prompt.

Project description

About

A simple IPython extension to show the path and virtualenv in the prompt. The extension attempts to detect both venv and Anaconda environments, and shows it along with the path above the standard IPython input prompt.

Installation

Install as usual from PyPI:

pip install ipython-venv-path-prompt

or from git:

git clone https://github.com/javidcf/ipython_venv_path_prompt.git
cd ipython_venv_path_prompt/
python setup.py install

The extension can be loaded from within an IPython session with %load_ext ipython_venv_path_prompt. To load the extension automatically, edit your IPython profile file. This file is located under your profile directory, which by default is ~/.ipython/profile_default, but you can check the exact location with the following command:

ipython -c "import IPython; print(IPython.get_ipython().profile_dir.location)"

If there is no ipython_config.py file in that directory, create one. Then, edit the file and add the extension name to the list of extensions to load on startup. Your configuration file could look like this:

c = get_config()
c.InteractiveShellApp.extensions = [
    'ipython_venv_path_prompt'
]

For more information about IPython configuration, see Introduction to IPython documentation.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ipython_venv_path_prompt-0.1.4.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ipython_venv_path_prompt-0.1.4-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file ipython_venv_path_prompt-0.1.4.tar.gz.

File metadata

  • Download URL: ipython_venv_path_prompt-0.1.4.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for ipython_venv_path_prompt-0.1.4.tar.gz
Algorithm Hash digest
SHA256 2bd553cb70265a44ab258e9e09c9714235509a279c0ec5d23d607d13a3bb6c87
MD5 35dc6ce6c4e0f88e57b666f4186aa322
BLAKE2b-256 71929c325a23d720c8d6fa10a9ccc91def1c42cbd1d123aa954ad4df7aff736d

See more details on using hashes here.

File details

Details for the file ipython_venv_path_prompt-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: ipython_venv_path_prompt-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for ipython_venv_path_prompt-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c83e4de4725ba2c5b399974c6cc79009bbf8adcb9d89628f2abffd0f218ea9e3
MD5 6fdcc0a15fc1e1dc4e3db2500cc4eaf6
BLAKE2b-256 a9bbeaaa997628a7503d523688cc3afb834fd281556746eb69a784b6b3639a0d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page