Unfortunately I have never used Enthought so don't have much to say on it. But I have a few tips on installing packages which might help you out and how I use Jupyter Notebook as part of my headless setup.
I tend to follow the instructions form the library's reliant website for using pip to install it.
You can install pip using:
When installed this way it can be a slightly out of date version. To make sure it is the latest version of pip use:
Once it is updated to the latest version you can install librarys which should look something like this to install jupyter for example:
My headless method:
When I log in with ssh I tend to log in with certain ports automatically forwarded off the back of that connection so web-servers or databases ran locally on the raspberry pi can be seen by the computer I am using to access the Raspberry Pi. This allows me to run Jupiter Notebook on the Raspberry Pi and access the webpage it creates remotely.
Notebook is great as I make a lot of mistakes when coding. It has auto complete and allows you to run your code in blocks so you can test your code in segments to help you debug it and build it up gradually. It returns outputs such as print() and errors directly under the block you are running. The code you write with it is running on the pi itself so you know that when it works its working on the pi. Finally it is useful to download and upload files using the Jupyter Dashboard to and from your pi.
Setting up the Local forwarding for the ports is different for Mac and Ubuntu vs Windows.
On a mac or Ubuntu:
I use the .ssh/config to create shortcuts, open a terminal:
sudo nano .ssh/config
Then you can copy in this and tweak for your settings:
Code: Select all
LocalForward 8888 127.0.0.1:8888
LocalForward 3306 127.0.0.1:3306
ctrl + x then ctrl + y to save and exit.
Host - This is the nickname for the connection setting as you can have several in this file
Port - Is optional if using the default 22
HostName - Is the IP address in this case a local one but it can be a web address such as a duckdns.org a free dns service.
LocalForward - For simplicity just copy these and change 3306 to the port you want.
To connect to you pi just use ssh:
(or whatever you put after Host)
On Windows I use Putty:
Download from: http://www.chiark.greenend.org.uk/~sgta ... nload.html
I downloaded Putty.exe
There are plenty of guides on how to connect via putty so i will briefly mention the ports:
Click the +ssh tab on the left
Use this window to configure your ports for example:
Source Port: 8888
Rinse and repeat for any other ports if necessary
At the top left click on session
Under saved sessions give it a nickname
Login as normal.
Using either of these methods will mean the machine you are login onto your pi with (Client) has those ports as if they were local. Once you have Jupiter notebook installed you can do the following:
Run jupyter notebook:
Go to a browser on the Client machine and enter into the url bar:
You should then be presented with the Jupyter Dashboard.