pandas/jupyther notebook?

Jim Byrnes jf_byrnes at comcast.net
Thu Apr 8 16:39:24 EDT 2021


On 4/7/21 4:32 PM, Jim Byrnes wrote:
> linux mint 20
> python 3.8
> jupyter 1.0.0
> jedi 0.18.0
> 
> I am teaching myself pandas/jupyter notebooks. The problem I am having 
> is tab autocomplete seems to be working erratically.
> 
> Googling shows that most people solve autocomplete problems by putting
> 
>   import pandas as pd
> %config Completer.use_jedi = False
> 
> in the first cell. I have done that and still have the following problem.
> 
> if I type: df = pd.read<tab> it will drop down a list box that has 
> read_csv in it. If I then type: emp<tab> it will fill in employees.csv. 
> If I type: df.h<tab> type head, but if I type:
> 
> df['Gender'] = df['Gender'].ast  it will not complete astype.
> 
> I wonder if someone can tell me why this is happening and maybe how to 
> fix it.
> 
> Thanks,  Jim
> 

After some further digging I found that this line added to the notebook 
fixed the problem for me.

%config IPCompleter.greedy=True

Regards,  Jim



More information about the Python-list mailing list