I cannot copy the token of jupyter notebook - anaconda

Hi I loaded Jupyter from Anaconda Prompt, with "jupyter notebook" command
Then it prompted me to enter the link with token, to open the notebook (it opened the notebook page on IE default browser, but I wanted to open in Chrome)
But here is the problem: I cannot select and copy text from Anaconda Prompt; The link is not in clipboard automatically either.
How can I get the link and run it in Chrome one way to the other?
Thanks.
enter image description here

Right click on Title Bar and select Properties. Check on 'Quick Edit Mode'
This worked for me after reading this for Windows Command Prompt

Related

Persistent jupyterlab page on web browser

In linux, there can be dedicated jupyter lab port that is always available. User does not need to launch Jupyter Lab from terminal.
How can something similar be achieved in windows. So that even if I restart my machine I still can visit the page and expect jupyter lab to be running.
Kindly note I don't want to use jupyter-lab desktop instead.
Basically I want a bookmark saved and when I open the page it automatically triggers a live jupyter lab workspace as is the case in linux ports.
Probably in Linux kernel based OS, JupyterLab is converted to a service. You can check all services with systemctl --type=service --state=active command. In Windows, if you want a similar experience to enabled services of a Linux kernel based OS, you can easily create a new startup item. To do that:
1- Create a shortcut with the command that you use to start JupyterLab:
a. Right click to an empty part of your desktop -> New -> Shortcut
New shortcut creation
b. Write "C:\Windows\System32\cmd.exe" /k <terminal_command_for_jupyterlab> to shortcut's location.
JupyterLab command shortcut
This shortcut will run the command for JupyterLab. Give an appropriate name to your shortcut.
2- Add this shortcut to startup items:
a. Press Win+R buttons.
b. Write shell:startup to Run window.
c. Copy your shortcut and paste your shortcut to folder that is opened with previous step.
After all these steps, JupyterLab should be started automatically without user interaction on each startup of Windows.

How to get that terminal button on right click?

How to get the terminal button on right click on widows?
The btn looks like this
Terminal Btn
On click of that btn, it opens the terminal.
Termianl
Windows Terminal Preview v1.1.1671.0 and later installers put the Windows Terminal in the context menu.
https://github.com/microsoft/terminal/releases/tag/v1.1.1671.0
But if you have an older version, you need to update the Windows Registry.
Create a wterminal.reg text file and put the following code in it and then run it. Also, make sure paths to wt.exe and wt_32.ico files are correct on your system. You can change those paths according to your system.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\wt]
#="Windows terminal here"
"Icon"="%USERPROFILE%\\AppData\\Local\\terminal\\wt_32.ico"
[HKEY_CLASSES_ROOT\Directory\Background\shell\wt\command]
#="%LOCALAPPDATA%\\Microsoft\\WindowsApps\\wt.exe"
Warning: Be careful and make sure you have a backup of the Windows Registry before applying any changes.
Here you can find more information about it: https://github.com/microsoft/terminal/issues/1060#issuecomment-497539461

How can I change the theme of my Hyper Terminal (downloaded from hyper.is)?

If you have any experience with the downloadable software "Hyper" which is basically just a terminal, then you might be able to help me. I can't change the theme, its look. I am on the newest version of MacOS. I tried opening the file hyper.js but my computer can't find it. "~/Library/Application Support/Hyper/.hyper.js" marks an error. What can I do to change the theme?
I figured it out, I had to go up to the Hyper (On the top bar next to the "apple" logo on my mac), then click on "Preferences". That opens a JavaScript file that contains values such as colors for different parts of the "Hyper" program. Head to "foregroundColor" and you can change the font color. I chose '#27fe16' so that it looks like the traditional cool terminal.
This is what I did:
Open Hyper Terminal.
Go to Menu->Edit->Preferences or press Ctrl + ,
.hyper file will be opened for clarification.
Under the modules.exports section, navigate to config section.
Find plugins: ["hyper-material-theme", "verminal"],
Remove the Plugin/Theme and save and exit.
You will see a notification "Hyper Configuration reloaded!"
Example: [] for default theme.
The procedure is similar on both Windows as well as MacOS.
On Windows, This is what I did:
Open Hyper Terminal
Go to Menu->Edit->Preferences or press Ctrl + ,
Check this image
.hyper file will be opened for clarification
Under the modules.exports section, navigate to config section.
There you will find all font related options, i.e Size, Color, Background Color,
Border Color etc.
Check this image
Select the colors combination you want in Hex format.
Save file and exit.
To install new themes on Hyper:
Go to https://hyper.is/themes
Find the theme you want from that website
take note of the name of the theme
go to hyper cmd line and type hyper i <name of theme>. E.g hyper i hyper-material-theme for installing hyper-material-theme
To uninstall Theme
do hyper uninstall <name of theme>. E.g. E.g hyper uninstall hyper-material-theme for uninstalling hyper-material-theme
To see what themes you have:
Open hyper
Press Ctrl + ,
See module.exports.plugins. It is an array of themes you have downloaded.

Launch Jupyter Notebook in windows without command window

Is it possible to launch jupyter notebook without command console, i.e, without typing jupyter notebook and having a command window in your opened programs. I have made a batch file which I double-click to open the jupyter notebook. However, this step opens a command window and prints all the communication between jupyter and python processes. I want to eliminate this commandline window.
Instead of a batch file, one can use a shortcut.
To hide terminal you can run python scripts with pythonw.exe instead of python.exe. So I changed the Jupyter shortcut which was created after Anaconda installation accordingly. Mind that shortcut's Target field may have multiple python.exe instances, like the following:
C:\ProgramData\Anaconda3\pythonw.exe C:\ProgramData\Anaconda3\cwp.py C:\ProgramData\Anaconda3 C:\ProgramData\Anaconda3\pythonw.exe C:\ProgramData\Anaconda3\Scripts\jupyter-notebook-script.py "%USERPROFILE%/"
Shortcut window screenshot
This thread seems to be the first to appear when googling the problem.
My solution is for Anaconda users: Launch Jupyter from the Anaconda navigator. You won't have to keep an open CMD window, as upon exiting the navigator you are given the option to close or not close Jupyter.
It appears from the following questions that what you want to do is tricky in windows:
https://superuser.com/questions/62525/run-a-batch-file-in-a-completely-hidden-way
How to call CMD without opening a window
Each of these questions has various work-arounds presented in the answers, each with their pros and cons. Perhaps one of them will meet your needs.
I use RBTray to right click the minimize button and have the window go hide in the system notification tray.

Unable to open an existing notebook in IPython Notebook

I want to open a notebook, say 'IPython - beyond normal Python'. To achieve this, I perform the following steps, in order.
Move to the place where IPython Notebook is installed.
cd to 'Notebooks'. iPython dashboard opens in a browser with list of available notebooks.
Click on the desired notebook.
The third step opens a new tab, but I can't see the contents of the notebook. A screen shot of what appears under that tab is shown below.
How can I see the contents of the notebook?
I would say that the notebook format is v3 and you are running IPython v0.12 that only read notebook v3. There is a warning message in newer versions if the notebook version is more recent than IPython.
Also IPython, not iPython if possible.

Resources