It might sound stupid, but the jupyter notebook I'm using is, probably, not configured as it should.
Everytime I hit 'tab' when the cursor is within a function, the parameters doesn't appear in the top of the list. Any tip here?
enter image description here
Found this on stack over flow TAB completion does not work in Jupyter Notebook but fine in iPython terminal
are you using firefox aswell?
the solution seems to be to run:
pip3 install jedi==0.17.2
Related
I have been using Jupiter notebook for a moment, but for some reason, the menu of my Notebook changed to something that looks like that enter image description here
However, I have difficulties finding my marks with this menu. I would like to know how to change it back to the more classic setting.
I found the answer on this website.
I just had to run the following command
!jt -r
I have installed Jupyter dashboard, however, when I choose either Grid or Report layout, my data is displayed as below:
I have tried to uninstall and re-install but doesn't seem to work. I am running Jupyter notebook 6.1.6 and Python 3.
Any idea what might be causing this? It is the same on all my notebooks.
Many thanks in advance
That is definitely weird!! If the notebook or your code is acting weird sometimes it is best to press the “RESET BUTTON”. Reseting the kernel clears all in memory objects and restarts your code from the very top.
To reset the kernel press the reset button, which is the curved arrow button, located under the word 'Kernel'.
This is my first effort to run a Pycharm Jupyter Notebook project.
1) Create a project MyPythonProject. Done!
2) Create a new MyJupyterNotebook. Done!
3) Enter print('hello') into the triangular cell. Press the green run button!
Dialog appears saying please enter JupyterNotebook URL and Auth token)
4) Fair enough I go to command prompt type > Jupyter Notebook
carefully record it
http://localhost:8888=/?token=4e209a6963b8dab232c0b03379d5321431726df7713c53e0
5) Enter it into the little black dialog box!
6) Seems to connect no error BUT, no feedback. In fact I can put junk in the cell like #$#$$%#$##! in the cell and still see no output at all.
So where is my output going? I don't see this notebook after connecting to it? I don't see any results anywhere in PyCharm for executing the cell. For example I put junk in the cell and saw no output or errors anywhere in pycharm. I also put
print('hello world')
(sic) and saw no output.
I also don't see this Notebook has been loaded from PyCharm. And I wonder exactly how I would go about resetting the token if needed since the dialog just grabbed it I suppose its in project settings somewhere ... I am sure I am missing something but really thought I would see some type of output at this point when I run a cell. Any ideas what's wrong?
Update: I did load the notebook using file explorer in browser of Jupyter Notebook outside pycharm and I again see the contents of the file. But still not seeing any output in pycharm
Update: jupyter notebook keeps CONNECTING TO KERNEL
Seems like latest tornado version is not working as answered above.
There is a separate view for viewing output from cells in the top right. Just below the file tabs.
I've recently switched to VSCode, and am wondering if there's a way to make the Python Interactive Window from the Jupyter support in VSCode work like the console in Spyder where I just have to select code and press ctrl+enter to send it, without having to create cells everytime.
For now I'm resigned to work with the Terminal until my code is clean and then create a cell when I have reusable code, and would like to just work directly with the PIW.
You can always change the default console setting by:
Opening the Command Palette (⇧⌘P)
Typing "Preferences:Open Settings (JSON)
Edit this line:
"python.dataScience.sendSelectionToInteractiveWindow": false
You should be able to do this with the latest python extension. The select the code you want to execute and press shift-enter. Is that not working?
For me (now) interactive mode runs after setting "jupyter.sendSelectionToInteractiveWindow": true
#FranciscoRZ. You should have seen a popup option for this, but if it didn't come up for you it can just be manually set in VSCode options. Just change this guy here:
Python->Data Science: Send Selection To Interactive Window
That should get you what you are looking for.
OP's Note: Accepting this answer because it will be the right anwser starting with the February release of VS Code Python
If you have the notebook saved as a python percentage script (which is more git friendly)
each "cell" will be delimited by # %% and the default run command is "Shift+Ctrl".
Later once you are working in the interactive window, If you want a particular cell you wrote on the fly to be in you script, there is one button which says "Paste code into file" right next to the recently executed cell in the interactive window.
And in case you are using the notebook for the sake of being able to later export it to html or pdf, once executed in the interactive window, there is an export button as well.
I am using spyder 3.2.2 with Anaconda 3.6 in Windows 10 OS.
Weird things happened here, when I am coding in the ipython console in spyder. I pressed 'Home' or 'Ctrl+A' to try to go back to the beginning of the line, but the cursor only goes to the second position of the line. 'End' or 'Ctrl+E' works fine here. Pressing 'Home' key twice will make the cursor go to the beginning of the line though, but it's so inconvenient then.
Here is the screen capture:
(Spyder developer here) This is caused by a bug in the qtconsole package.
Unfortunately we don't know how to fix it because we are unable to reproduce it. If you find a clear way to do it, please post a comment on the issue report referenced above.