<div dir="ltr"><div class="gmail-usertext-body gmail-may-blank-within gmail-md-container"><div class="gmail-md"><p>(I hope that sending variations of the same question to StacKOverflow, Reddit and here is not considered spamming...)<br></p>

<p>Path autocompletion in the IPython console in PyCharm does not work well:   </p>

<pre><code>c:/U<TAB> 
</code></pre>

<p>should autocomplete to:</p>

<pre><code>cd c:/Users/
</code></pre>

<p>on my machine; instead, the best it manages is:</p>

<pre><code>cd c:/UserWarning
</code></pre>

<p>which is plain wrong. IPython in the Anaconda prompt, however, behaves as it should.</p>

<p>My strong assumption is that this is due to PyCharm not using the standard IPython configuration files.</p>

<p>I'm aware of the console starting script ins PyCharm:</p>

<pre><code>Settings->Build, Execution, Deployment->Console->Python console
</code></pre>

<p>and I've successfully used it to activate a simple magic command I've written.</p>

<p>So here my question: is there a code configuration snippet that could
 be inserted there, and that could just enable file path autocompletion?
 Or a pointer to a general description on how IPython configuration 
files "work", that would enable me to figure it out myself? That is, I 
imagine, the most doable hack that would solve the problem for the time 
being.</p>

<p>Alternatively, any experiences with writing your own autocompletion using the following libraries:</p>

<pre><code>IPython.core.completer
IPython.core.completerlib
</code></pre>

<p>?</p>

<p>Is that doable? How much work can that be?</p>

<p>Thanks in advance!</p><p>Nenad<br></p><p>-----------------------------</p>

<p>Links supporting claims in the question(s) above:</p>

<p>1) Autocompletion in IPython console in PyCharm not working as it should</p>

<p>On StackOverflow there are three questions with similar wording, but not one substantial answer:</p>

<p><a href="https://stackoverflow.com/questions/32542289/pycharm-ipython-tab-completion-not-working-within-python-console">https://stackoverflow.com/questions/32542289/pycharm-ipython-tab-completion-not-working-within-python-console</a>
<a href="https://stackoverflow.com/questions/35612338/how-to-set-ipython-profile-in-pycharm">https://stackoverflow.com/questions/35612338/how-to-set-ipython-profile-in-pycharm</a>
<a href="https://stackoverflow.com/questions/32458158/pycharm-python-console-autocompletion">https://stackoverflow.com/questions/32458158/pycharm-python-console-autocompletion</a></p>

<p>(No, using  Ctrl+Space instead of Tab does not solve anything.)</p>

<p>JetBrains (creators of PyCharm) know about this since, at least, two years:</p>

<p><a href="https://intellij-support.jetbrains.com/hc/en-us/community/posts/205820389-Console-tab-completion-">https://intellij-support.jetbrains.com/hc/en-us/community/posts/205820389-Console-tab-completion-</a></p>

<p>and seems to have started working on it, but never finished it. 
Discussion states " this is only the initial step to getting full 
IPython tab completions": <a href="https://youtrack.jetbrains.com/issue/PY-9345">https://youtrack.jetbrains.com/issue/PY-9345</a> . But the issue is closed since October 2016: <a href="https://github.com/JetBrains/intellij-community/pull/440">https://github.com/JetBrains/intellij-community/pull/440</a></p>

<p>2) PyCharm not using ipython_config.py to configure IPython Console:</p>

<p><a href="https://intellij-support.jetbrains.com/hc/en-us/community/posts/206603035-Which-ipython-config-py-is-used-to-configure-IPython-for-Python-Console-">https://intellij-support.jetbrains.com/hc/en-us/community/posts/206603035-Which-ipython-config-py-is-used-to-configure-IPython-for-Python-Console-</a></p>

<p>-----------------------------</p><p>My setup: 
PyCharm Community Edition 2017.2.1
Anaconda 2 (Python 2.7), version 4.3.22
which contains
IPython 5.1.0
on Windows 7 Professional N</p>
</div>
</div></div>