Notebook: Help ! Shortcuts in jupyter notebook don't work. (TAB and SHIFT+TAB)

Created on 10 Feb 2016  路  12Comments  路  Source: jupyter/notebook

Hello guys, really need help in this. I'm a new python user an is using Jupyer Notebook for coding.

I found out some of the shortcuts are not working. Like pressing TAB to pop out the "code completion or indent".nothing happens when I press it now... (I press TAB after the dot)

image

And also, tooltip didn't pop out either when I press SHIFT+TAB...

I've restart my browser, and switch from chrome, chrome canary, and IE, but still not working. Is there any solutions?

Thanks a lot! Really need your help!

Most helpful comment

With that code, it can't inspect L until you've run the cell, because L hasn't been created until you run that code. We don't want to try to run your code in order to do completions.

If you define L in one cell, and run that, tab completions should work in the next cell.

We've got plans to use some better completion machinery (jedi) that might be able to complete in that case by doing static analysis, but that's still some way off.

All 12 comments

With that code, it can't inspect L until you've run the cell, because L hasn't been created until you run that code. We don't want to try to run your code in order to do completions.

If you define L in one cell, and run that, tab completions should work in the next cell.

We've got plans to use some better completion machinery (jedi) that might be able to complete in that case by doing static analysis, but that's still some way off.

The workaround is to put the code in a separate cell, and execute it.
This also happens on more complex expressions, the workaround I found is to assign the intermediate result to a temporary, at least while you're writing code:

tmp = pd.crosstab(tr['gender'], tr['status'])

tmp.<shift-tab completion works here>

Is there any update on when this will be implemented?

The relevant machinery is in the kernel. We tried to use jedi for IPython 5, but found some problems and turned it off again. We hope to be able to turn it back on and fix the issues for IPython 6, but there's a lot of things people are doing.

Any further updates on this feature?

The workaround is to put the code in a separate cell, and execute it.
This also happens on more complex expressions, the workaround I found is to assign the intermediate result to a temporary, at least while you're writing code:

tmp = pd.crosstab(tr['gender'], tr['status'])

tmp.<shift-tab completion works here>

what is "tr" ?

tr is a pandas dataframe

Hello guys, really need help in this. I'm a new python user an is using Jupyer Notebook for coding.

I found out some of the shortcuts are not working. Like pressing TAB to pop out the "code completion or indent".nothing happens when I press it now... (I press TAB after the dot)

I am in the same shoes(new to programming/python), in my case, restarting the Kernel helped.
Go to Kernel, then restart, Wait for few seconds/steps(shown in jupyter), then try it again.

If you are using jupyter notebooks and anaconda create a new environment. Will fix the issue

In the Google Colab environment, I fixed it as follows:
Tools | Settings | Editor |uncheck Automatically trigger code inspection.
Then, Tab and Shift-Tab worked as expected.

Hello guys, really need help in this. I'm a new python user an is using Jupyer Notebook for coding.

I found out some of the shortcuts are not working. Like pressing TAB to pop out the "code completion or indent".nothing happens when I press it now... (I press TAB after the dot)

image

And also, tooltip didn't pop out either when I press SHIFT+TAB...

I've restart my browser, and switch from chrome, chrome canary, and IE, but still not working. Is there any solutions?

Thanks a lot! Really need your help!

Restart Kernal it will be worl

pressing Esc key worked for me, try it once. It is used to enable command mode.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mowe96 picture mowe96  路  3Comments

arbaazsama picture arbaazsama  路  3Comments

cmesro picture cmesro  路  3Comments

uolter picture uolter  路  3Comments

pylang picture pylang  路  3Comments