How To Install python3-ipython-sphinx on Rocky Linux 8

In this tutorial we learn how to install python3-ipython-sphinx on Rocky Linux 8. python3-ipython-sphinx is Sphinx directive to support embedded IPython code

Introduction

In this tutorial we learn how to install python3-ipython-sphinx on Rocky Linux 8.

What is python3-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 python3-ipython-sphinx on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python3-ipython-sphinx.

Install python3-ipython-sphinx on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install python3-ipython-sphinx

Install python3-ipython-sphinx on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install python3-ipython-sphinx

How To Uninstall python3-ipython-sphinx on Rocky Linux 8

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

sudo dnf remove python3-ipython-sphinx

python3-ipython-sphinx Package Contents on Rocky Linux 8

/usr/lib/python3.6/site-packages/IPython/sphinxext
/usr/lib/python3.6/site-packages/IPython/sphinxext/__init__.py
/usr/lib/python3.6/site-packages/IPython/sphinxext/__pycache__
/usr/lib/python3.6/site-packages/IPython/sphinxext/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/IPython/sphinxext/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/IPython/sphinxext/__pycache__/custom_doctests.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/IPython/sphinxext/__pycache__/custom_doctests.cpython-36.pyc
/usr/lib/python3.6/site-packages/IPython/sphinxext/__pycache__/ipython_console_highlighting.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/IPython/sphinxext/__pycache__/ipython_console_highlighting.cpython-36.pyc
/usr/lib/python3.6/site-packages/IPython/sphinxext/__pycache__/ipython_directive.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/IPython/sphinxext/__pycache__/ipython_directive.cpython-36.pyc
/usr/lib/python3.6/site-packages/IPython/sphinxext/custom_doctests.py
/usr/lib/python3.6/site-packages/IPython/sphinxext/ipython_console_highlighting.py
/usr/lib/python3.6/site-packages/IPython/sphinxext/ipython_directive.py

References

Summary

In this tutorial we learn how to install python3-ipython-sphinx on Rocky Linux 8 using yum and dnf.