A radioAstronomy project
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 9 commits ahead, 4 commits behind hfarias:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
casanova @ bcd503d


Caspyter BASE (CASA + Jupyter)

THIS README IS OUTDATED. Please stay tuned for new updates...

Install Caspyter on Docker

1.- Docker

The first step is install docker, docker is:

Docker is the world’s leading software container platform. Developers use Docker to eliminate “works on my machine” problems when collaborating on code with co-workers. Operators use Docker to run and manage apps side-by-side in isolated containers to get better compute density. Enterprises use Docker to build agile software delivery pipelines to ship new features faster, more securely and with confidence for both Linux and Windows Server apps. More info

To install follow the following instructions Download Docker Community Edition

After installation of docker, create a folder named CASPYTER and next run the next command in your terminal:

      docker run --name caspyter  -it -d \
      -v /rute/to/caspyter:/data \
      -p 8022:22 -p 8080:80 -p 8081:8081\
      -h caspyter ubuntu:14.04

It's time to access the container, run the next command in your terminal:

    docker exec -it caspyter /bin/bash

2.- Clone Caspyter/Casanova files

This project is base on Casanova project, before clone this project you must install git, copy and run (as root) the scrip install_caspyter.sh (in this repository /script/install_caspyter.sh)

3.- Start Caspyter

Firts go to caspyter user and restart bash variables

    su caspyter
    cd /home/caspyter
    source /home/caspyter/.bashrc

then got to the notebook folder and start caspyter

    cd /home/caspyter/notebook

Caspyter will show you this message:

Copy/paste this URL into your browser when you connect for the first time,
    to login with a token:

Now you must replace for localhost in you browser.

Install Caspyter locally

1. Make sure you have the following dependencies

  • libice6
  • libsm6
  • libxt6
  • libxrender1
  • libfontconfig1
  • libcups2
  • libxml2
  • libxslt-dev
  • libgtk2.0-0
  • python-qt4
  • Anaconda

2. Download CASA

wget https://almascience.eso.org/arcdistribution/casa-distro/linux/release/casa-release-4.5.2-el6.tar.gz
tar zxf /home/caspyter/casa-release-4.5.2-el6.tar.gz

3. Install patchELF

sudo sh /path/to/caspyter/scripts/patchELF.sh

4. Install Casanova

  • Edit infodir and casainstalldir parameters in caspyter/install_casanova file, and then run caspyter/install_casanova
  • Edit caspyter parameter in caspyter/casanova_startup and then add this to your .bashrc:
alias caspyter="source /path/to/caspyter/casanova_startup"

If you get an error like CXXABI_1.3.8' not found, you might want to try this:

strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep CXXABI_1.3.8

If it returns CXXABI_1.3.8, try with:

cp /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /home/user/anaconda2/bin/../lib/libstdc++.so.6