i cant use the autocompletion on jupyter, i already used %config IPCompleter.greedy=True and also installed jedi but nothing has changed im still facing the same problem.
i searched after using %config IPCompleter.greedy=True if the greedy parameter gets activated and it really does however its like if its not installed.
[EDIT] : to explain more after pressing tab popup nothing appears
does any one have a solution for my probleme ?
thankyou .
Related
I have a problem that interactive objects from ipywidgets do not work in Jupyter Notebook on my computer. The widget itself is displayed but the function that it should control (e.g. drawing graph with changing parameter), seemingly, does not run. I took example from documentation and it does not work.
The picture of code and output
Code:
import ipywidgets
import widgetsnbextension
def greeting(text="World"):
print("Hello {}".format(text))
ipywidgets.interact(greeting, text="IPython Widgets")
What have I already tried:
There were similar questions, like this but the answer didn't work for me (the answer was to run this:
jupyter nbextension enable --py widgetsnbextension).
The code above works in GoogleColab so I tried to install their versions of packages ipython and ipykernel (packages ipywidgets and widgetsnbextensions were of the same version as mine). But it has led to errors so I have given up this idea. I have the latest versions of all packages now and I don't have Anaconda.
What should I try next? May be I am wrong and the problem has a different cause?
I found the answer!!!
I have had several nbextensions switched on (see screenshot). This was my mistake to include everything which seemed useful. When I turned off all nbextensions then all ipywidgets stuff started to work. Finally, I found that one particular extension called Limit Output is to be blamed for. Turn it off and all works fine.
The moral: don't use everything if you don't need it. Also, obviously, there is a bug in Limit Output extension because it is not supposed to affect widgets (it is supposed to limit output data when you accidentally write while(true) or something like that).
You can read some useful stuff about SageMath in the comments under the original question as well.
So, I've been using VSCode for Jupyter notebooks for almost a year and a half now, and it always used to work normally, but a couple of days ago it just got broken, and I don't know why. Here's what I mean:
Jupyter Notebook on VSCode
As you can see, there's no syntax highlighting, and autocompletion doesn't work at all... but if I run the code, it does run perfectly.
It works normally in Python scripts though:
Normal Python Script
Relevant Extensions I've got:
Jupyter (+ Keymap & Notebook Renderers)
Python
Pylance
I've got a bunch of others for C++ and Java.
Also, I've noticed that both Jupyter and Python extensions give an uncaught error, here's what I mean:
Jupyter Extension Error
Python Extension Error
I have no clue what any of this means. I've tried uninstalling and re-installing the extensions, re-installing VSCode, resetting settings.json and restarting my laptop, nothing worked.
Any help will be highly appreciated. Thanks
Do you have installed the extension of Dependency Analytics? You need to disable it.
Some people have run across the same problem, you can refer to here.
i can t use #%% anymore as a jupyternotebook cell. Its not marked as one or visuallized in any way. I tried reinstalling but didn t work.
I recently had a weird message which said something like "save code browsing activated" and casually just clicked away.
Any ideas how to get it back to normal?
I programm with #%% 99% of the time so i am kind of lost right now :D
regards martin
Check that you are in the right Python virtual environment, inside your VS Code. If you are in a virtual environment where you do not have the ipython packages installed, that would explain it.
I am having a problem with creating a new ipython notebook.
Previously I used to do that going to new -> python
but now I am unable to see any python option.
Also, I am unable to open any ipython notebooks, I have one uploading for hours now.
I recently erased my %temp% folder to free some space in the C drive. Does that have something to do with this? How do I fix this?
I solved the problem!
For some reason, jupyter labs was not installed
So running the command
jupyter -- version
and then checking what all was installed, I found out that jupyter labs was not installed?
pip3 install jupyter labs
so I went ahead and installed it and everything works as it did before.
Still don't know the reason why this all happened in particular. If anyone could help me with that'd be awesome!
I'm not sure 100% but this is most commonly related to an ipython jupyter notebook file error. I do recommend to do a clean install of the notebook and try again. As I don't have any specifications on your system is difficult to guide you on the process. But that is the best option you have now.
Also this could have happened because of an update on python, jupyter, your system or any base component required by jupyter or python.
I just installed a few libraries for Deep Learning like keras, theano etc. The installation went fine but when I write code in Jupyter notebook and press tab for autocompletion, the kernel of jupyter notebook seems to take too long for autocompletion. There have been time when it has taken minutes to display autocompleted options. I initially thought that the kernel hung so I had to restart it every time.
I read in another Stack Overflow post that installing pyreadline may help. I installed it but I'm still having the same problem.
Has anyone else faced this problem? How do I go about fixing this?
Any pointers would be greatly appreciated.
Little late answer, but you might try this at the top of your notebook:
%config Completer.use_jedi = False
Jedi is the culprit.
Either you can disable it as suggested by #Miles above, or remove it completely.
pip uninstall jedi
Uninstallig worked for me. Jupyter suggestions are much faster now!