How To Install python-ipython-sphinx on CentOS 7

In this tutorial we learn how to install python-ipython-sphinx on CentOS 7. python-ipython-sphinx is Sphinx directive to support embedded IPython code

Introduction

In this tutorial we learn how to install python-ipython-sphinx on CentOS 7.

What is python-ipython-sphinx

IPython provides a replacement for the interactive Python interpreter with extra functionality. Main features * Comprehensive object introspection. * Input history, persistent across sessions. * Caching of output results during a session with automatically generated references. * Readline based name completion. * Extensible system of ‘magic’ commands for controlling the environment and performing many tasks related either to IPython or the operating system. * Configuration system with easy switching between different setups (simpler than changing $PYTHONSTARTUP environment variables every time). * Session logging and reloading. * Extensible syntax processing for special purpose situations. * Access to the system shell with user-extensible alias system. * Easily embeddable in other Python programs. * Integrated access to the pdb debugger and the Python profiler. This package contains the ipython sphinx extension.

We can use yum or dnf to install python-ipython-sphinx on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install python-ipython-sphinx.

Install python-ipython-sphinx on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install python-ipython-sphinx using yum by running the following command:

sudo yum -y install python-ipython-sphinx

Install python-ipython-sphinx on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install python-ipython-sphinx using dnf by running the following command:

sudo dnf -y install python-ipython-sphinx

How To Uninstall python-ipython-sphinx on CentOS 7

To uninstall only the python-ipython-sphinx package we can use the following command:

sudo dnf remove python-ipython-sphinx

References

Summary

In this tutorial we learn how to install python-ipython-sphinx on CentOS 7 using yum and dnf.