Skip to main content

simplify pip from with IPython

$ ipython2

In [1]: import pip_magic

In [2]: pip install pip_magic --upgrade
['pip_magic', '--upgrade']
You are using pip version 7.0.1, however version 7.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting pip-magic
  Downloading pip_magic-0.2.1-py2.py3-none-any.whl
Installing collected packages: pip-magic
  Found existing installation: pip-magic 0.2
    Uninstalling pip-magic-0.2:
      Successfully uninstalled pip-magic-0.2
Successfully installed pip-magic-0.2.1

In [3]: ## so recursive !

Why ?

See this twitter thread, the package pre-date this thread but it’s a good example:

Andreas Mueller

Is there a good succinct guide to how to figure out which Python environment you’re in and how to install stuff in the right environment that’s suitable for beginners? cc @jakevdp (also if there’s not Jake, can you write one ;)

Me:

pip_magic: pypi.python.org/pypi/pip_magic use pip from within IPython/Notebook and it install in same env you’re in.

AM:

That looks great, but also lacks a write-up explaining the problem ;)

Me:

Can I embed your tweet in the readme ?

AM:

Lol sure. Though it does expose me as the naysayer that I am ;) (and my tendency to complain on Twitter but not do anything productive lol)

Release files for pip_magic 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pip_magic 0.2.3
File Size Uploaded
pip_magic-0.2.3.tar.gz 2.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pip_magic 0.2.3
File Interpreter ABI Platform
pip_magic-0.2.3-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 5.9 kB

Release files / pip_magic-0.2.3.tar.gz

Download URL pip_magic-0.2.3.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
6a64b3d3b8f4bf8353a6586673094353075e9f6282541fe13c7349bb5bcf6018
BLAKE2b-256 checksum
How to use checksums
cc9e1e227ed2e5b8f79a9c3a19eb07a974e21337f674651c8f9b917317237d43
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pip_magic-0.2.3-py2.py3-none-any.whl

Download URL pip_magic-0.2.3-py2.py3-none-any.whl
Size 3.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
b46af6d01531f038042ee306c5e68a9fc5085e81b472b1f0a1ec04a7f919c86f
BLAKE2b-256 checksum
How to use checksums
8a857d10484f192d28c8ad63254d36671ae9948c7ba6e2767db28db414802386
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.3 This release

2 release files

0.2.2

1 release file

0.2.1

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page