I am running some python code using a jupyter notebook. The notebook should take a couple of days to finish. After a couple of running hours a massage is shown: "Error rendering Jupyter widget: missing widget manager." The hourglass at the chrome tab keeps on running, but the * symbol next to the cell no longer appears, only [] is appeared. I have two questions: 1. is the notebook still running? 2. How can I fix this?
Related
I love jupyter lab. But for a big file ( 600KB), scrolling the file has a lot of lagging. I move my mouse to scroll down or up, but I have to wait for 5-20 seconds before the page starts to move. For the same file, if I open in VSC, it is very smooth without any lagging. so it is not related to my file issue. it is something to do with jupyter lab.
I am using latest jupyter lab version.
Any suggestion I can do to remove the lagging inside jupyter lab? Thanks
We are new to using AI Platform. Following the documentation for creating a new notebook seems to work fine. I am able to launch JupyterLab and navigate through examples. However, there is no output or error/warning messages when cells in the notebook are executed (using tutorial notebooks). The cell gets marked as * however there is nothing happening.
The status in lower left corner goes 'starting' / 'unknown' and then stays on "Reconnecting".. using Python 3 setup (using defaults for all options when creating the notebook). I can stop and restart the kernal but same message. I have also tried changing to the Python 2 kernal, same results.
Is this related to the lack of output/warnings, do I have one problem or two? and how do I know what it is preventing the connection.
I try to open a terminal window and am not able to type any commands.
how do you debug something that isn't reporting errors?
After closing jupyter lab and re-launching jupyter lab, it always opens a notebook that was shutdown in previous session. How do I properly remove that notebook from re-opening on every launch?
jupyter lab --version #1.2.15
any notebook created in Jupyter lab gets auto saved and by default it autoloads the previous session which was last worked upon. Even your untitled notebooks gets autosaved, you can always check in the path where it is installed
[right click the kernal and there ill be a delete option or use the close button (x) right on top]
I've lost a day's work in Jupyter Notebook because it didn't autosave. As I was working, I would click on File > Save and Checkpoint to be safe. I closed the notebook when I finished working and when I tried reopening it, I see that essentially all my work is gone and it says Last Checkpoint: a day ago (autosaved) next to the filename. I now realize that I had been working for a long time on the notebook with an orange box with some kind of error message. I'm sorry that I can't remember the specific message right now, but I think it was something involving POS or POST or POSIT ...?. I saw Trusted next to the error message, so I must've thought things were OK.
I tried opening the filename-checkpoint.ipynb file within the .ipynb_checkpoints folder but it's blank. I looked up a possible solution on Recovering from a Jupyter Disaster, but it requires SQL, which I don't know. Is there any hope for recovering my work? I realize that this is probably a rookie mistake, but I'm pretty new at this.
Thanks
PS: I'm running Python3 on MacOS
Hope you've already found how to recover lost work from Jupyter notebook work. If not, try the following:
Go to Anaconda Navigator (the green circle!)
Launch a Jupyter Lab
In Jupyter Lab, open a Terminal window
Launch iPython in the terminal by typing ipython and hitting enter
Hit Up arrow
All your code are stored in history and each cell compilation that you would've done in the past shows up there.
Copy+Paste it back to a new Jupyter notebook and you are ready to go again!
If you want to copy/paste.
After running terminal and ipython, page_up yo code you want. Click right button on a mouse, then Watch the elements code. Now you can select code, copy and paste it.
If you don't have Anaconda Navigator you can do access the same data the manual way:
open a new ipython terminal
type %history -g -f history.txt
This will output the entire history of edits which are saved in history.sqlite in your IPython profile folder. You can scroll down to the bottom to find your most recent edits.
You can also just explore the history.sqlite directly, which is located in your IPython profile. The profile should be inside .ipython in your user directory (windows and linux).
Thanks to Christian Long's answer on another question for providing this info.
Python version: 3.4
Hi, I was running a small Python code in Pycharm, but it was terminated with the exit code 1073741819.
I've tried the same code in the Python command line and Anaconda, and both worked. Any idea why Pycharm has the problem, and how can I get it work in Pycharm? Thanks a lot.
Its too late to answer now, but maybe it helps someone else. My code also worked right with command line but not inside pycharm, it usually happens when we switch between different projects on PyCharm.
I fixed it by:
1- Restarting the Pycharm and reloading the project into it.
2- Clearing the heap memory by clicking at this in status bar:
and now it works pretty fine.
P.S: If this indicator doesnt appear then visibility of this section in the Status bar is defined by the Show memory indicator check box in the Appearance page of the Settings/Preferences dialog. It is not shown by default.