Software Preparation for Modelling Workshop

Similar documents
Conda Documentation. Release latest

Installation and Introduction to Jupyter & RStudio

Chris Calloway for Triangle Python Users Group at Caktus Group December 14, 2017

Lab 0: Intro to running Jupyter Notebook on a Raspberry Pi

Getting Started with Python

nrkdownload Documentation Martin Høy

Linux Software Installation Part 1

CSE 101 Introduction to Computers Development / Tutorial / Lab Environment Setup

KNIME Python Integration Installation Guide. KNIME AG, Zurich, Switzerland Version 3.7 (last updated on )

Harnessing the Power of Python in ArcGIS Using the Conda Distribution. Shaun Walbridge Mark Janikas Ting Lee

VIP Documentation. Release Carlos Alberto Gomez Gonzalez, Olivier Wertz & VORTEX team

Welcome to our walkthrough of Setting up an AWS EC2 Instance

ELEC6910Q Analytics and Systems for Social Media and Big Data Applications

PYOTE installation (Windows) 20 October 2017

Platform Migrator Technical Report TR

swiftenv Documentation

CS Unix Tools. Lecture 3 Making Bash Work For You Fall Hussam Abu-Libdeh based on slides by David Slater. September 13, 2010

Installing Lemur on Mac OS X and CSE Systems

Startup Notes for Standard CMD 2015.x Setup

Eclipse Environment Setup

Connecting ArcGIS with R and Conda. Shaun Walbridge

Linux Software Installation. Qi Sun Bioinformatics Facility

Installing Python 3 on Your Personal Computer

Getting started with Python

Quick Installation Guide: TC-Python

manifold Documentation

Science One CS : Getting Started

Bonus 1. Installing Spark. Requirements. Checking for presence of Java and Python

Wazza s QuickStart 8. Leopard Server - Sharepoints (Part 2)

Instructor s Notes Web Data Management Web Client/Server Concepts. Web Data Management Web Client/Server Concepts

Startup Notes for CMD 2015.x with Remote Database Server Software for CMD 2015, 2014, and 2013 Users

PRIAM Installation Instructions 1.2.1

Containers. Pablo F. Ordóñez. October 18, 2018

Lecture 6: more pandas (and git/github) LING 1340/2340: Data Science for Linguists Na-Rae Han

Diocese of Wollongong MS Exchange

Installation Manual and Quickstart Guide

UI and Python Interface

Blackboard Collaborate Launcher for Mac OS X

GuitarPort 2.5 Users You do NOT have to uninstall GuitarPort 2.5 before installing GearBox.

CONCOCT Documentation. Release 1.0.0

SQL Server Standard Edition 2017 Installation Guide. By Engin Calisir, 06/22/2018

License Server Administrator Guide How to configure and manage a license server for sharable licenses

Data Reduction Helpdesk First Responder Guidelines

Homeowner Portal Tutorial Guide

Keep connected O2 WLAN. Use O2 Connection Manager to get online

Index. Bessel function, 51 Big data, 1. Cloud-based version-control system, 226 Containerization, 30 application, 32 virtualize processes, 30 31

Word: Print Address Labels Using Mail Merge

Software Installations

Lab 4: Configuring node.js apps with ATP

One of the hardest things you have to do is to keep track of three kinds of commands when writing and running computer programs. Those commands are:

Manual Update Java Bit Offline Installer

Introduction to Python. IPTA 2018 Student Workshop, Socorro NM Adam Brazier and Nate Garver-Daniels

Lesson 2: Preparation

Contents. Note: pay attention to where you are. Note: Plaintext version. Note: pay attention to where you are... 1 Note: Plaintext version...

Windows 10 Login Accounts Workshop Table of Contents God Account... 1 Create Password Reset Disk... 3 Create User Account...

2 Initialize a git repository on your machine, add a README file, commit and push

INSTALLATION INSTRUCTIONS FOR IPYTHON ENVIRONMENT

Multi-factor Authentication Instructions

Uninstall Java Manually Mac Os X 10.8 Server

Linux Software Installation Part 2

Anaconda Python Distribution

Using aeneas for Audio-Text Synchronization

About these Release Notes. Product Information

Journey Group Leaders Seraphim Training

Programming with Python

CS Unix Tools & Scripting

Linux Operating System Environment Computadors Grau en Ciència i Enginyeria de Dades Q2

SiteProxy adds security, reduces network traffic on the camera, and improves performance.

FlexNet Licensing: Steps to Activate Licenses to an Offline License Server

Computer Basics 1/24/13. Computer Organization. Computer systems consist of hardware and software.

This video is part of the Microsoft Virtual Academy.

Frequently Asked Questions

A. Getting Started About e-access Enrolling in e-access: Authenticating your account Login... 5

Honors Computer Science Python Mr. Clausen Programs 4A, 4B, 4C, 4D, 4E, 4F

Created by: Nicolas Melillo 4/2/2017 Elastic Beanstalk Free Tier Deployment Instructions 2017

EnGenius Mesh AP Reset Tool Quick Guide

ENCM 339 Fall 2017: Editing and Running Programs in the Lab

CMSC 201 Spring 2017 Project 1 Number Classifier

FastX Setup Guide. Last revision: January 2018

CMSC 201 Fall 2016 Homework 6 Functions

4HOnline has a powerful report system that allows you to take an existing report, customize it to suit your needs, and then save it to use again.

Setting up VT Wireless connection Mac OSX

A Gentle Introduction to CMSC311 labs and CVS Or How I learned to use CVS in CMSC311. William Arbaugh September 2, 2004

Downloading, Installing, and Configuring Audacity Under OS X

Introduction to UNIX I: Command Line 1 / 21

DogeCash Masternode Setup Guide Version 1.2 (Ubuntu 16.04)

My Lakeland Student Guide

CS 1110, LAB 1: EXPRESSIONS AND ASSIGNMENTS First Name: Last Name: NetID:

About the Tutorial. Audience. Prerequisites. Copyright & Disclaimer

DVR 2500 Firmware Update Guide

Introduction to Linux Part 2b: basic scripting. Brett Milash and Wim Cardoen CHPC User Services 18 January, 2018

Supported platforms & compilers Required software Where to download the packages Geant4 toolkit installation (release 10.1.p02)

Python ecosystem for scientific computing with ABINIT: challenges and opportunities. M. Giantomassi and the AbiPy group

Frequently Asked Questions FOR FAMILIES

ME30_Lab1_18JUL18. August 29, ME 30 Lab 1 - Introduction to Anaconda, JupyterLab, and Python

Operating systems fundamentals - B02

OREKIT IN PYTHON ACCESS THE PYTHON SCIENTIFIC ECOSYSTEM. Petrus Hyvönen

Computer Basics 1/6/16. Computer Organization. Computer systems consist of hardware and software.

More than likely, You will be prompted with an option to run or save. Our software is virus free, you can go ahead and click on Run.

CS354 gdb Tutorial Written by Chris Feilbach

Transcription:

Software Preparation for Modelling Workshop Daniel Brown, Andreas Freise University of Birmingham Issue: Date: July 27, 2017 School of Physics and Astronomy University of Birmingham Birmingham, B15 2TT

CONTENTS Contents 1 Introduction 2 2 Installation for simulation tools 2 2.1 I am a Python user and have Anaconda/Conda installed already (Windows, OSX, or Linux)... 2 2.2 I am a Python user and have my own environment already set up that I want to use....... 2 2.3 For Windows users without Conda installed.............................. 3 2.4 For Mac OSX without Conda installed................................. 3 2.5 For Linux users without Conda installed................................ 4 2.5.1 Installing PyKat, Finesse and Jupyter with Conda...................... 5 3 Using Jupyter notebook to run Finesse 5 page 1 of 6

1 Introduction This document provides information on getting started for a hands-on session on optical simulations. The aim of the hands-on sessions is to provide a basic introduction to concepts behind the optical simulation tools used in the gravitational wave community by working directly with code and with simulation tools. Computers with the modelling software should be provided by the school. However, it might be more convenient if you work on your personal laptop. The installation instructions below should guide you though the process of installing all the required software packages. If you have questions or need help, you can contact us at: finesse@star.sr.bham.ac.uk 2 Installation for simulation tools Our hands-on session will make use of Python and Jupyter notebook. The Python ecosystem has to be installed first. The way we recommend to run Finesse and PyKat is through the Conda package manager: http://conda.pydata.org/miniconda.html. We have created Conda packages to automate and easily install both PyKat and Finesse in one command. Figure 1: We recommend running Python 3 (Python 2 is now being phased out) so select the installer according to the operating system of your computer. From the section titles pick the one that suits your current condition the most. 2.1 I am a Python user and have Anaconda/Conda installed already (Windows, OSX, or Linux) If you already use Anaconda or Miniconda on your system, then installation is very easy! You can just straight ahead to section 2.5.1. 2.2 I am a Python user and have my own environment already set up that I want to use If you have Python already installed on your machine and you are using it regularly for other tasks, you might not want to follow the instructions exactly as they are written below, as you don t want to interfere with your previous Python setup. You can install Conda as per the instructions below just to try out Finesse and in such a way that it doesn t interfere with your Python setup as you have it. You need to follow the instructions below as described for your operating system. On Windows you can install Conda, Pykat, and page 2 of 6

2.3 For Windows users without Conda installed Finesse and it will be entirely separate from your original setup, if you don t want it anymore just uninstall it. On OSX and Linux, you should follow the instructions below but should avoid the commands that edit the /bash_profile changing the PATH variable and setting a default environment to start up. Just Install it and call the miniconda3/bin/activate tool just when you want to use Finesse. This will temporarily setup your environment to use the Pykat and Finesse tools but is easily deactivated and returned to your normal setup. For those that don t want to use Conda at all you need to install the Finesse binary file for your operating, please see the installation instructions for Finesse and PyKat on the project pages at: http://www.gwoptics. org/finesse and http://www.gwoptics.org/pykat on how to do this. If you re not sure what to do at any point and have general questions about setting it all up, please email us at finesse@star.sr.bham.ac.uk and we ll be happy to advise you. 2.3 For Windows users without Conda installed First download the Python 3 Miniconda installer from the website linked above. Double click on the *.exe and follow the instruction on screen. You can just use all default settings given by the installer. Once the Miniconda has been installed, search for Anaconda Prompt in the start menu. This could be in the Anaconda folder. See Figure 2. Figure 2 This will open a new command window which can run Conda and Python. Type: conda info. If the installation has been successful, you should see the information related to Conda on the screen (see Figure 3). Now move on to section 2.5.1. 2.4 For Mac OSX without Conda installed Open up a new Terminal window. Here we will download the latest Conda installer and setup the terminal to use the default environment. Run each command one after another: curl "https://repo.continuum.io/miniconda/miniconda3-latest-macosx-x86_64.sh" -o ~/Miniconda3.sh bash ~/Miniconda3.sh -b echo #Added during Finesse and Pykat Conda installation >> ~/.bash\_profile echo export PATH="~/miniconda3/bin:\$PATH" >> ~/.profile echo source activate root >> ~/.profile source ~/.profile Type conda info, you should see a similar output to below: page 3 of 6

2.5 For Linux users without Conda installed Figure 3 Current conda install: platform : osx-64 conda version : 4.3.21 conda is private : False conda-env version : 4.3.21 conda-build version : not installed python version : 3.6.1.final.0 requests version : 2.14.2... The main Conda environment will be activated each time you open a new terminal and will be ready for you to use straight away. You can tell that the environment is activated by the fact that (root) should now appear before each line in the terminal. If you want to switch off the environment, simply type source deactivate. You can stop the environment from being permanently activated by removing the source activate root line from the file /.profile in your home directory. Now move on to section 2.5.1. 2.5 For Linux users without Conda installed Open up a new Terminal window. Here we will download the latest Conda installer and setup the terminal to use the default environment. Run each command one after another: wget https://repo.continuum.io/miniconda/miniconda3-latest-linux-x86_64.sh -O ~/Miniconda3.sh bash ~/Miniconda3.sh -b echo #Added during Finesse and Pykat Conda installation >> ~/.bash\_profile echo export PATH="~/miniconda3/bin:\$PATH" >> ~/.bash\_profile echo source activate root >> ~/.bash\_profile source ~/.bash\_profile Type conda info, you should see a similar output to below: Current conda install: page 4 of 6

platform : linux-64 conda version : 4.3.21 conda is private : False conda-env version : 4.3.21 conda-build version : not installed python version : 3.6.1.final.0 requests version : 2.14.2... The main Conda environment will be activated each time you open a new terminal and will be ready for you to use straight away. You can tell that the environment is activated by the fact that (root) should now appear before each line in the terminal. If you want to switch off the environment, simply type source deactivate. You can stop the environment from being permanently activated by removing the source activate root line from the file /.bash_profile in your home directory. Now move on to section 2.5.1. 2.5.1 Installing PyKat, Finesse and Jupyter with Conda Note to Windows users: When we say open a Terminal, we mean open Anaconda Prompt from now on. Open up a new Terminal window use the following commands one after another to install all packages we need: conda update conda conda config --add channels gwoptics conda install pykat jupyter activate root Type y for yes when asked and wait for the installation complete. If you run the following command: python -c "import pykat" You should see the PyKat header. Then type: kat -v and it should show the Finesse version. If any errors appear at this stage please contact us at finesse@star.sr.bham.ac.uk. One can see the list of the installed packages with the command conda list. Now see section 3 on Jupyter notebooks. 3 Using Jupyter notebook to run Finesse Using Jupyter notebook is a nice way to keep your technical notes with results. The Jupyter notebook should already have been installed on your computer in Section 2.5.1. For Windows system, to open the Jupyter notebook, open the Anaconda Prompt command window, and type jupyter notebook. Or you can also find it in your computer Start menu under Anaconda folder (see Figure 4). For OS X and Linux system, to open the Jupyter notebook, open the Terminal window, and type jupyter notebook. page 5 of 6

Figure 4 The Jupyter notebook will be opened with your default Internet browser. You can go to, or create, your preferred working folder. Press New and chose Python 3 (shown in Figure 5) to create a new notebook. Figure 5 page 6 of 6