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'.
Related
My code connects with a database and sometimes the database disconnects on me. As result the script ends. I would like to be able to add a line of code that would allow me to restart and run all the cells in Jupyter notebook.
Input:
if condition ==True:
#Kernel restart and run all jupyter cells
I understand there is already a question that may seem similar but it is not. It only creates a button that you can click to restart and run all the cell
How to code "Restart Kernel and Run all" in button for Python Jupyter Notebook?
Thank you
Would a keyboard shortcut suffice?
For JupyterLab users and those using the document-centric notebook experience in the future, see How to save a lot of time by have a short cut to Restart Kernel and Run All Cells?.
For those still using the classic notebook (version 6 and earlier) interface to run Jupyter notebooks:
A lot of the classic notebook 'tricks' will cease to work with version 7 of the document-centric notebook experience (what most people not consider the 'classic notebook interface') that is on the horizon. The version 7 and forward will use tech that is currently underlying JupyterLab, see Build Jupyter Notebook v7 off of JupyterLab components. And so moving towards JupyterLab now will help you in the long run.
It was fine like 1 week back but when I opened Jupyter notebook and started coding but autocompletion is not working, then I uninstalled it even Anaconda and reinstalled it still not working properly(i know about shift-tab but I unless press it is coming, starting it is used to come when I simply start typing the code). And the major problem is kernel is getting crashed frequently like cells are not running sometimes if I press shift-enter rather than executing it is moving to the next cell, even if I restart the kernel after running a certain no of cells it is stopping.
I even tried
pip uninstall Jedi --yes
(please do guide me it is literally a pain in the neck to type everything)
Thanks in advance
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
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.
Officially, jupyter notebook supports Chrome, Safari and Firefox (see paragraph 1.9 here). I'm trying to use it with the lightweight Luakit browser. My notebook opens correctly in Luakit, I can execute a cell by pressing the Run button in the task bar, but the keyboard isn't responsive from within the opened notebook window (the keyboard works elsewhere): I can't navigate, nor press shift + enter to execute a cell, nor even edit a cell.
Does any one know how to set up Luakit to be able to use it with jupyter notebook?
I have just found a simple solution to be able to use the keyboard from within a jupyter notebook cell: go into insert mode, by typing i (letter i). Unless someone can provide guidelines so that there's no need to first type i, I'll take this approach as an answer.