Saturday, March 28, 2020

How do I: Setup jupyter notebook to launch from a particular startup folder

Step 1

Run the below command in Anaconda prompt to find the path to file jupyter_notebook_config.py

jupyter notebook --generate-config


Step 2

Open the file in a text editor, from the location identified in Step1

Step 3
Search for the following line.

#c.NotebookApp.notebook_dir = ''

Step 4

Uncomment the line and add the directory like in the example below and save the config file

Note: In the below example, I hadto add an extra backslash to ignore the escape sequence '\n'
c.NotebookApp.notebook_dir = "D:\Lab\python\\notebook"

Sunday, September 15, 2019

Windows Server: run ipconfig /registerdns

There was a server that I couldn't remote using the DNS name. IT support provided me with command to run on the server. This command registers the DNS name in the network.

I used the IP address instead of DNS to login and run this command.

run ipconfig /registerdns