Skip to main content

IPython magic commands, now available in pure Python

Project description

IPython's magic commands, now implemented in pure Python (Python using only built-in libraries).

How to install using pip in Windows 10:

  1. Open command prompt (Win+R, type in 'cmd')
  2. Type command pip install magic-commands
    2.1. To install in Python version X.Y, do pipX.Y install magic-commands or py -X.Y -m pip install magic-commands (requires global py launcher)
    2.2. If pip is not already installed, do py -m ensurepip, or in Python version X.Y do py -X.Y -m ensurepip
    2.3. If neither py nor python is a command, make sure to have installed Python with the Add PythonX.Y to PATH and global py launcher options checked.

How to install using pip in Ubuntu 20.04 LTS (Needs confirmation):

  1. Open Terminal
  2. Run pip install magic-commands
    2.1. To install in Python version 'X.Y', do pipX.Y install magic-commands or pythonX.Y -m pip install magic-commands
    2.2. If pip is not already installed, do python -m ensurepip, or in Python version X.Y do pythonX.Y -m ensurepip OR sudo apt install python-pip
    2.3. If neither python nor python3 is a command, Python can be installed using sudo apt install python, or specifically Python version X.Y do
    sudo apt update
    sudo apt install software-properties-common
    sudo add-apt-repository ppa:deadsnakes/ppa
    sudo apt update
    sudo apt install pythonX.Y
    

To check if magic-commands is installed:

  1. On Windows 10
    1.1 Open command prompt (Win+R, type in 'cmd')
    1.2 Open python by entering command py or python. To open Python version X.Y specifically, do py -X.Y
    1.3 Type in import magiccmds. If no ImportError occurs, the package is installed.
  2. On Ubuntu 20.04 LTS
    2.1 Open Terminal
    2.2 Open python by entering command python or python3. To open Python version X.Y specifically, do pythonX.Y
    2.3 Type in import magiccmds. If no ImportError occurs, the package is installed.

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

magic-commands-0.0.13.tar.gz (22.1 kB view hashes)

Uploaded Source

Supported by

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