Undo text entry in Jupyter Notebook under Win7 - jupyter-notebook

I was surprised I did not find an answer to this question on Jupyter Notebook under Win7 here or on the web.
I just overwrote by mistake a larger part of a call block, but not all. Autosave dates back some previous changes that I do not want to revert. Where is the undo function for text entries in Jupyter Notebook?

Hit the ESC key to enter Command Mode. Now you can hit the h key to see all available commands. To undo an entry you have to go back to Edit Mode (hit ENTER) and then do a CTRL-Z.

Related

cant acces jupyter notebook variable from previous session

So, im playing around with jupyter notebook, and I have this code, that i wrote yesterday:
BUt the problem is, that when i try to acces my model object the next day. Jupyter does not allow me to do that
For some reason i am not able to acces the variables in cells that i wrote i a previous session. Why is this? and how do I circumvent?
If you shut down the Jupyter Notebook service this is to be expected. Your output and cell numbers are saved in the notebook, but objects actually do not stay in memory. Notice how you have In [4]: in both screenshots. This is because you restarted the service and the second screenshot shows your 4th run of that cell since the restart.
You need to rerun the entire notebook to load everything into memory. You can use Kernel> Restart & Run All from the top menu to do this automatically.

How to start Jupyter notebook in background?

I have installed Jupiter notebook using Anaconda. I run it as using jupyter notebook --no-browser in command prompt in windows 10. I want to run it as the background so that I don't accidentally close the command prompt. The problem here is, many users of systems accidentally close the command prompt, which affects other users.
Open Anaconda navigator.
Launch the jupyter notebook from it. It will run as a background process. Even if you close the Anaconda navigator, it works. So when you close the anaconda navigator, it asks do you want to kill the background process, make sure you unselect the checkbox. Check below screenshot.
This method worked well.
You can use START /b, but that will terminate the program when command window is closed. You will need a VBScript to accomplish this. This post show a simple script to accomplish this: https://superuser.com/questions/62525/run-a-batch-file-in-a-completely-hidden-way

Impossibily to run Jupyter notebook from Windows start menu and required tokens

I am a novice in the use of Python and I am using PandasBiogeme to estimate discrete choice models.
My issue is related to the Jupyter notebook. Usually when I wish to use it, I select it from the start menu of Windows 7 and automatically a new tab opens up in Chrome.
Yesterday, actually by not knowing exactly why, I logged out from Jupyter notebook and today when I launched it from the start menu the following error message appeared:
I thus decided to reinstall Anaconda, and PandasBiogeme and to update both of them.
Now when I wish to open Jupyter notebook from the start menu a prompt menu appears and suddenly disappears. Therefore I need to open the Anaconda Powershell and type
jupyter notebook
Yet, when I do this I receive the same error message I reported above
I typed in the second URL and I was then able to work again.
Yet, when I close Jupyter notebook and try to launch it again the same problem arises and I have to insert again 'a' token. I wrote 'a' token, because if I select by chance the token reported at the following URL (which has nothing to do with my work)
https://jupyter-notebook.readthedocs.io/en/stable/security.html
namely, this one:
http://localhost:8888/?token=c8de56fa4deed24899803e93c227592aef6538f93025fe01
and then Jupyter notebook works and I can carry out my estimation.
I read different posts on the possibility to set a password to avoid problems related to tokens, but only the first time I inserted the token I had the option to insert a password in in a html page, but I decided not to do it. Now I believe it could be the case.
This is something that happened overnight, without, I believe, my doing anything specifically.
This issue is driving me crazy and I would be thankful if any of you had a potential suggestion.
Many thanks.
Marco

How to reopen Jupyter notebook if I closed the tab?

This is an extremely basic question. At some point I accidentally closed the window containing my Jupyter notebook tabs. It's gone from my 'recently closed tabs' in Chrome. Is there some way that I can reopen the notebooks corresponding to the currently active kernels?
In case it makes a difference, they are julia kernels, and I started the notebook server by typing notebook() in a julia REPL session.
If your server is still running, you can still see all previously opened notebooks:
Access your dashboard via the browser (usually http://localhost:8888 by default).
Select the Running Tab (as mentioned by #Quang Hoang).
Example
As the same happened to me and the first google result was this entry, here is some additional information:
When following the url posted above (http://localhost:8888), you may be asked for a password or token, the latter of which you will find either in the Jupyter terminal window (also providing you with the direct notebook url):
Jupyter terminal screenshot
, or, if using Anaconda, by opening the "Anaconda Prompt" and entering jupyter notebook list.

Possible to copy/paste from IPython Notebook to other apps?

I'm new to Ipython Notebook. I can cut and paste from other apps into my notebooks, but how do I copy/paste code out of notebook into a different app?
I'm accessing a Linux VNC session via Chicken. I can cut/paste with wild abandon between OSX/Linux using both command X/C/V and/or middle mouse button. I can also copy code into IPython notebook. I'm stopped dead in my tracks trying to get code out of IpyNotebook.
Using Notebook's 'Edit/Copy Cell' doesn't work, neither does 'Ctrl-m c'.
I'm running IPython 0.13.1
You have to select and copy code using normal Ctrl-C Ctrl-V. 'Edit/Copy Cell' is a specific action in javascript that does a little more and that browser security policy prevent us to bind with clipboard.

Resources