Home directory in Jupyter

I recently installed Anaconda on my SP3 ( I am switching to Python as my main scripting language). However, by default setup, Jupyter (the successor of Ipython) always starts in my home directory, which is C:\Users\xxxxx. Here are the steps to change this setting.

1. Go to the Jupyter install directory. In my case, it is “D:\Program Files\Anaconda\Scripts”. From here run (in command windows)

jupyter notebook --generate-config

Now we will have a file called “.jupyter/jupyter_notebook_config.py” in the above home directory.

2. Then go to the home directory, and edit the configuration file we just got. Search for ” # c.NotebookApp.notebook_dir = u” “, and put the desired path here. This will result in something like:

# c.NotebookApp.notebook_dir = u’E:\Research\Ipython’

3. Now restart the Jupyter, and it will show the new home directory.

 

Setting up Wifi hotspot on Windows 8

This afternoon I worked with others in the library, and came across some strange issues. My laptop was able to connect to the network, but there was another laptop having issues of “No Internet Connection”, despite its being connected to the network. I figured out a way of sharing the usable connection on my laptop.

Continue reading

Network configuration in VM workstation

This is my second time running into this problem, so I think it would help to put the solution here.

I am using VM workstation to run Windows and Linux simultaneously. I have used Ubuntu virtual machine before, and everything was smooth. But I ran into problem when running CentOS virtual machine with host machine using wired Internet connection. My environment is Windows 8.1 + VM workstation 11. Here is my solution:

1. Make sure the network adapter for CentOS virtual machine was “NAT”;

2. Check the host connection, and set the actual network connection. Then set it to allow connection sharing. The “Home network connection” is set to be the NAT adapter in VM workstation (it looks like the default one is VMnet8). Here is the correct setting.

vm_network

 

3. Now the CentOS vm should be able to get connected to Internet.