<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic vi-like key bindings in Intel python interactive command line interpreter in Intel® Distribution for Python*</title>
    <link>https://community.intel.com/t5/Intel-Distribution-for-Python/vi-like-key-bindings-in-Intel-python-interactive-command-line/m-p/1363241#M1811</link>
    <description>&lt;P&gt;How can I use the vi-like key bindings in the REPL (the interactive command line interpreter) of Intel Python?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I use Ubuntu Linux, and I have set up the system default python to accept the vi-like key bindings (e.g. `k` for previous line in the history) by writing the following line in `~/.inputrc`&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;```&lt;/P&gt;
&lt;P&gt;set editing-mode vi&lt;/P&gt;
&lt;P&gt;```&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This configuration file is read by `readline` library, which is used by the system default python REPL. However, this file does not seem to be taking effect on Intel python.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I got Intel python as a part of OneAPI toolkit. I recently installed Intel fortran, C++, and DPC++ compilers from OneAPI toolkits via Ubuntu APT package manager, and Intel python seems to have been installed as a dependency. It is installed at `/opt/intel/oneapi/intelpython/latest/bin/python3` separately from the system default python, `/usr/bin/python3.8`.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Feb 2022 06:02:32 GMT</pubDate>
    <dc:creator>norio</dc:creator>
    <dc:date>2022-02-24T06:02:32Z</dc:date>
    <item>
      <title>vi-like key bindings in Intel python interactive command line interpreter</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/vi-like-key-bindings-in-Intel-python-interactive-command-line/m-p/1363241#M1811</link>
      <description>&lt;P&gt;How can I use the vi-like key bindings in the REPL (the interactive command line interpreter) of Intel Python?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I use Ubuntu Linux, and I have set up the system default python to accept the vi-like key bindings (e.g. `k` for previous line in the history) by writing the following line in `~/.inputrc`&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;```&lt;/P&gt;
&lt;P&gt;set editing-mode vi&lt;/P&gt;
&lt;P&gt;```&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This configuration file is read by `readline` library, which is used by the system default python REPL. However, this file does not seem to be taking effect on Intel python.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I got Intel python as a part of OneAPI toolkit. I recently installed Intel fortran, C++, and DPC++ compilers from OneAPI toolkits via Ubuntu APT package manager, and Intel python seems to have been installed as a dependency. It is installed at `/opt/intel/oneapi/intelpython/latest/bin/python3` separately from the system default python, `/usr/bin/python3.8`.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 06:02:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/vi-like-key-bindings-in-Intel-python-interactive-command-line/m-p/1363241#M1811</guid>
      <dc:creator>norio</dc:creator>
      <dc:date>2022-02-24T06:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: vi-like key bindings in Intel python interactive command line interpreter</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/vi-like-key-bindings-in-Intel-python-interactive-command-line/m-p/1363683#M1813</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good day to you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for posting in Intel Communities.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To use vi-like key bindings in Intel Python, you need to install gnureadline package since Intel Python uses GPL code and that license is not compatible with the Intel MKL library.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To install gnureadline, just run the following command:&lt;/P&gt;
&lt;LI-CODE lang="bash"&gt;pip install gnureadline&lt;/LI-CODE&gt;
&lt;P&gt;Once, this is done, Intel Python will respect the ~/.inputrc file containing the "set editing-mode vi" line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this resolves your issue, make sure to accept this as a solution. This would help others with a similar issue.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and Regards,&lt;/P&gt;
&lt;P&gt;Jyothis V James&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 08:09:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/vi-like-key-bindings-in-Intel-python-interactive-command-line/m-p/1363683#M1813</guid>
      <dc:creator>JyothisV_Intel</dc:creator>
      <dc:date>2022-02-25T08:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: vi-like key bindings in Intel python interactive command line interpreter</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/vi-like-key-bindings-in-Intel-python-interactive-command-line/m-p/1364102#M1816</link>
      <description>&lt;P&gt;Thank you for your answer. I installed gnureadline package by pip3, and it's working.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For those who may be viewing this thread later, I leave some comments.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I had two pip3. One from Ubuntu, and one from Intel. My PATH environmental variable was set up so that the pip3 command points to Ubuntu pip3 at `/usr/bin/pip3`. I re-arranged the set up, so that pip3 points to Intel pip3 at `/opt/intel/oneapi/intelpython/latest/bin/pip3` before running the pip3 install. (I think I could use the full path `/opt/intel/oneapi/intelpython/latest/bin/pip3 install gnureadline` without modifying PATH.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did the following command as a normal user,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;```&lt;/P&gt;
&lt;P&gt;pip3 install gnureadline&lt;/P&gt;
&lt;P&gt;```&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then, the gnureadline package was installed to `~/.local/lib/python3.9/site-packages/`.&lt;/P&gt;
&lt;P&gt;The system default pip3 uses `~/.local/lib/python3.8/site-packages/` because the system default python version is 3.8.&lt;/P&gt;
&lt;P&gt;I wonder what happens if the Intel python and system python were the same version.&lt;/P&gt;
&lt;P&gt;It may have been wise to do the pip3 command with sudo and installed the gnureadline package in&lt;/P&gt;
&lt;P&gt;`/opt/intel/oneapi/intelpython/python3.9/lib/python3.9/site-packages/` (or somewhere).&lt;/P&gt;
&lt;P&gt;This would be good for avoiding the collision and consistent to having already installed OneAPI tool kits by sudo.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Feb 2022 03:48:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/vi-like-key-bindings-in-Intel-python-interactive-command-line/m-p/1364102#M1816</guid>
      <dc:creator>norio</dc:creator>
      <dc:date>2022-02-27T03:48:04Z</dc:date>
    </item>
    <item>
      <title>Re:vi-like key bindings in Intel python interactive command line interpreter</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/vi-like-key-bindings-in-Intel-python-interactive-command-line/m-p/1366303#M1824</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Good day to you.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Glad to know that your issue is resolved. Thanks for sharing that information with the community.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Kindly note the following:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;System Python packages are typically stored to&lt;/P&gt;&lt;P&gt;&lt;I&gt;/home/&amp;lt;username&amp;gt;/.local/lib/python3.x/site-packages/&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Intel Python packages if Intel oneAPI Basekit is installed without sudo privillege are stored to&lt;/P&gt;&lt;P&gt;&lt;I&gt;/home/&amp;lt;username&amp;gt;/intel/oneapi/intelpython/latest/lib/python3.y/site-packages/&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Intel Python packages if Intel oneAPI Basekit is installed with sudo privillege are stored to&lt;/P&gt;&lt;P&gt;&lt;I&gt;/opt/intel/oneapi/intelpython/latest/lib/python3.y/site-packages/&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Hope this clears your doubts. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Jyothis V James&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Mar 2022 08:47:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/vi-like-key-bindings-in-Intel-python-interactive-command-line/m-p/1366303#M1824</guid>
      <dc:creator>JyothisV_Intel</dc:creator>
      <dc:date>2022-03-07T08:47:48Z</dc:date>
    </item>
  </channel>
</rss>

