Today
-
Course introduction, logistics.
-
Computer languages.
-
Introduction to Julia programming.
Course material
All lecture notes are Jupyter Notebooks. It is a good idea to learn by running through the code examples. You can do this in several ways.
Run in Binder
Easiest way to run the Jupyter Notebooks is Binder, a free service that allows us to run Jupyter Notebooks in cloud. Simply follow the Binder link at https://ucla-biostat-257-2020spring.github.io/schedule.html.
If you want the JupyterLab interface, replace the tree by lab in the URL.
Run locally on your own computer
- Download and install Julia v1.4.0 from https://julialang.org/downloads/. On Mac, I usually use Bash command
sudo ln -s /Applications/Julia-1.4.app/Contents/Resources/julia/bin/julia /usr/local/bin/juliato create a symbolic link so
juliacommand is available anywere in the system. - Git clone the course material.
git clone https://github.com/ucla-biostat-257-2020spring/ucla-biostat-257-2020spring.github.io.git -
Enter the folder
ucla-biostat-257-2020spring.github.io.giton Terminal. - Open Julia within that folder, type
]to enter the package mode, then typeactivate . resolveto install necessary packages.
- In Julia REPL, type
using IJulia jupyterlab(dir=pwd())to open the JupyterLab in browser.
- Course material is updated frequently. Remember to
git pullto obtain the most recent material.
Tip for Windows user: Our TA Brendon is a Windows user. Feel free to consult him to configure your windows machine for open source data science tools.
JupyterHub at UCLA
Ben Winjum at IDRE sets up an JupyterHub server for this class. Follow below steps to access the server.
-
Point your browser to http://ps6.idre.ucla.edu/. Log in using UCLA for the ID provider.
-
After log in, you should be able to see the folder
ucla-biostat-257-2020spring.github.ioin your home directory. By default, you will see the Jupyter Notebook interface. To change to the JupyterLab interface, changetreetolabin URL. Open an terminal in JupyterLab, cd to the~/ucla-biostat-257-2020spring.github.iofolder, and typegit pullto obtain the most updated course material. -
Run the Jupyter Notebooks.