jupyter_contrib_nbextensions tab not showing for large notebooks - python-3.x

I just installed jupyter_contrib_nbextensions. However, I could see the navigator tab on only on the small notebooks. Large notebook files do not contain the tab. It is not in the edit tab either.
Would anyone be able to help me on this issue.
Thanks
Michael

Related

Double tabs in PyCharm 2022.2.1 in Jupyter Notebook?

Please advise how to config the tabs behavior inside PyCharm 2022.2.1 and Jupyter Notebook.
I have checked inside the tabs and spaces and all configs are fine but inside the notebook I see it is doubling the tabs (8 instead 4 spaces).
How can I change it?
I think I have figured out the issue. When I open the file and change .ipynb to .py or playing with the formats it messes with the tabs size.
Just opened a new notebook in my PyCharm and copied my code. Voila, worked :)
Hope it will help others.
You can simply change the indent to 4 spaces by configuring the tab and indent settings for the current *.ipynb file under the status bar at the bottom of the main window.

Why am I seeing attributes twice in the dropdown menu in Jupyter Notebook?

Each time I load up a Jupyter Notebook in Python, it works fine, BUT I am seeing options from the dropdown menus (when pressing tab) twice. I am trying to figure out why this is and correct it. I have included a screenshot to illustrate what I mean more clearly.
One idea is perhaps that I have multiple instances of Python running? Is that possible? Other than that I am not sure how to investigate and find out what is causing this so that I can correct.
Any ideas, direction or overall solution appreciated. Thanks!

Getting some icon over the folder in a sublime text editor

I am using MacBook Air, I am using Sublime text editor for the last two years. It was working but from yesterday, I am getting some kind of icon on my folder. I am not able to understand why I am getting this. I have my files inside that folder and I am Not able to click on the folder as well. When I check in another text editor then my folder is working.
Please check below image
Can anyone know this issue?

Jupyter Notebook didn't save for over a day. How can I recover lost work?

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.

Highlight to select and Middle-button to paste in jupyter notebook?

In Jupyter Notebook, when I highlight text either from within a cell in the notebook or from outside the notebook, Middle-Button click doesn't paste anything as it is supposed to do in many other applications in linux. Is there any setting that would allow one to be able to paste with a Middle-Button click into an Ipython or Jupyter Notebook?
I'm using the notebook in firefox if that matters.
The fact that you're using Firefox definitely matters. See this issue on CodeMirror (CodeMirror is the text editor that Juypter uses): Issue #931
In that thread, it references this Firefox issue: https://bugzilla.mozilla.org/show_bug.cgi?id=846674
It seems as though the issue has only recently been fixed, so it may take a little bit to trickle into CodeMirror. You may want to comment on the issue in CodeMirror to inform them that the issue has been fixed on FF and it might prompt them to investigate.
However, Jupyter doesn't automatically use the most recent version of CodeMirror so again you may have to wait a while. If this issue is truly critical then I suggest switching to another browser.

Resources