Skip to content

Tutorial: Use jupyter.sns.gov for the first time (Setup)

Jiao edited this page Feb 10, 2017 · 3 revisions

This page explains how to set up your jupyter notebook environment at SNS. This only has to be done for once.

Watch the tutorial video

Connect to SNS analysis cluster using thinlinc

SNS jupyter service is now only available from inside the SNS analysis cluseter. So the first step is to connect to SNS analysis cluster using thinlinc.

  1. Open http://analysis.sns.gov in a browser and log in analysis-login
  2. Log in again if the screen saver was on analysis-screensaver-login

Set up jupyter notebook environment

All the following steps happen inside the thinlinc window of the SNS analysis cluster.

  1. Open a browser open-browser
  2. Browse to https://jupyter.sns.gov and log in jupyter-login
  3. You are now presented the jupyter view of your home directory at analysis cluster as shown below. Click "notebooks" to open the "notebooks" directory. browser
  4. You are now in directory "notebooks". Click "CG1DImaging" contents of notebooks folder
  5. You are now in directory "CG1DImaging". Click "Welcome.ipynb" cg1dimaging-folder
  6. In the "Welcome" notebook, click the cell that says
import sje
sje.setup(instrument="CG1DImaging")

and type "shift-Enter" to execute it cg1dimaging-welcome 7. Close this notebook close-nb-for-sje-setup 8. It is done! Your SNS jupyter environment was set up. You are ready to move on to the next step. Use the jupyter notebooks for your data analysis.