The only installation you are recommended to do is to install Anaconda3.5, so that you have a backup when the OIT version is flaky. The otherkernels and the Docker version are not required and you should onlydo so if you are comforatble with command line installs. Even theAnaconda 3.5 installation is optional if the OIT version works well foryou.
Note: I have only done this on OSX 10.11.2 (El Capitan) with XCode andcommand line compilers installed.
To install Anaconda for Python 3.5¶
Docker on El Capitan. Apr 1, 02:35 PM. Categories WebDev. Docker is a tool that makes containers: local environments in which you can run certain versions of software (I haven’t explained this very well). This means that you can, for example, set up a local webserver with the specific versions of PHP, Apache and MySQL. Docker version: v1.12.0+ v1.10.0+ v1.12.0+ Docker Compose version: v1.6.0+ v1.6.0+ v1.6.0+ OS version: OS X El Capitan 10.11: Ubuntu 14.04 LTS or 16.04 LTS CentOS 7.1/7.2 SUSE Linux Enterprise 12: Windows 10 (64bit) Pro or Home (with WSL2 backend support) Additional. (optional) Microsoft Hyper-V.
Download and install Anaconda Python 3.5 fromhttps://www.continuum.io/downloads
Open a terminal
(OPTIONAL) To install Python 2.7 as well¶
Open a terminal
(OPTIONAL) To install R¶
- If you want
conda
to manage your R packages
- If you have an existing R installation that you want to use
Start R
(OPTIONAL) To install Julia¶
Download and install Julia from http://julialang.org/downloads/
Start Julia
(OPTIONAL) To install pyspark
¶
Open a terminal
Check¶
Open terminal
See if the installed kernels are found in the drop-down menu.
(OPTIONAL) Installing Spark via Docker¶
- Install Docker (https://docs.docker.com/engine/installation/)
- Launch the Docker Quickstart Terminal
Be patient - this can take a while the first time you do it
When done, it shouuld show something like this
Note the IP address given - you will need this to access thenotebook.
In the Docker terminal
For how to connect to a Spark cluster, see officialinstructions
Testing the Docker installation¶
Check by typing in the Docker terminal
Be patient - this can take a while the first time you do it.
It shoudl show something like
Note the machine name (mine is big_kilby, yours will likely bedifferent).
Open your browser at the following URL http://192.168.99.100:8888 (Usethe IP given above)
This should bring you to a Jupyter notebook. Open a Python3 notebookfrom the drop dwon menu and test:
If successful, you should get a list of 5 integers after a short delay.
Save and exit the notebook.
Cleap up in the Docker terminal
Use the machine name foudnd with dockerps
in place ofbig_kilby
.
A quick guide on how to run containers requiring a GUI with Docker for Mac and XQuartz.
Docker El Capitan Software
This guide is assuming the following:
- OS X 10.11.5 (El Capitan)
- Docker for Mac 1.12 stable
- XQuartz 2.7.10 beta 2
- Jessie Frazelle’s Firefox Dockerfile
Prerequisites
XQuartz
Docker Desktop For Mac El Capitan
You’ll need XQuartz, and normally you would probably install it via brew (but not this time):
XQuartz 2.7.9, which is the current one provided by brew, has a bug which will prevent you from following this guide. So, head on over and download XQuartz 2.7.10 beta 2 from here.
After installing XQuartz, log out and back in to OS X.
Docker for Mac
Download Docker for Mac 1.12 stable from here, install and run.
Go!
Run XQuartz in e.g. bash:
In the XQuartz preferences, go to the “Security” tab and make sure you’ve got “Allow connections from network clients” ticked:
Again, in e.g. bash, run xhost
and allow connections from your local machine:
You can now to run e.g. Jessie Frazelle’s Firefox container: