NYU Health Sciences Library, NYU Langone Health
Instructor: Genevieve Milliken, MA, MSLIS, Data Services Librarian
This beginner-level class will address concepts foundational to all programming languages and provide an introduction to coding more generally using Python as its framework for learning. The class will begin with a brief discussion about why Python is useful and how it can be implemented into your workflow. We’ll spend the remainder of the class using Python to learn about programming basics and best practices.
By the end of class, learners will be exposed to:
- Basic Syntax
- Data Types
- Variables
- For Loops
- Conditional Statements
- Functions
- Python Libraries
Learners are not expected to have significant previous coding experience prior to attending. We will be using Jupyter Notebook and the open-source Anaconda Distribution. Please install Anaconda (which comes with Jupyter Notebook) prior to the workshop: https://www.anaconda.com/distribution/
Questions? Email: genevieve[dot]milliken[at]nyulangone[dot]org
-
Download the graphical macOS installer for Python 3.10.
-
Double-click the downloaded file and click continue to start the installation.
-
Answer the prompts on the Introduction, Read Me, and License screens.
-
Click the Install button to install Anaconda in your ~/opt directory (recommended).
-
Click the continue button.
- OR, click the Change Install Location button to install in another location (not recommended) On the Destination Select screen, select Install for me only.
-
Click the continue button.
-
Optional: To install PyCharm for Anaconda, click on the link to https://www.anaconda.com/pycharm. Or install without.
-
A successful installation will display "The installation was completed successfully". Verify Installation.
-
Download the Anaconda installer.
-
OPTIONAL: Verify data integrity with SHA-256.
-
Double click the installer to launch.
-
Click Next.
-
Read the licensing terms and click “I Agree”.
-
Select an install for “Just Me” unless you’re installing for all users (which requires Windows Administrator privileges) and click Next.
-
Select a destination folder to install Anaconda and click the Next button. See FAQ.
- Choose whether to add Anaconda to your PATH environment variable. We recommend not adding Anaconda to the PATH environment variable, since this can interfere with other software. Instead, use Anaconda software by opening Anaconda Navigator or the Anaconda Prompt from the Start Menu.
-
Choose whether to register Anaconda as your default Python. Unless you plan on installing and running multiple versions of Anaconda or multiple versions of Python, accept the default and leave this box checked.
-
Click the Install button. If you want to watch the packages Anaconda is installing, click Show Details.
-
Click the Next button.
-
Optional: To install PyCharm for Anaconda, click on the link to https://www.anaconda.com/pycharm. Or to install Anaconda without PyCharm, click the Next button.
-
After a successful installation you will see the “Thanks for installing Anaconda” dialog box:
-
In your browser, download the Anaconda installer for Linux (Python 3.7 version).
-
OPTIONAL: Verify integrity with SHA-256 checksum:
sha256sum /path/filename
- After fully downloaded (it may take a few minutes), enter the following to install Anaconda for Python 3.7:
bash ~/Downloads/Anaconda3-2019.10-Linux-x86_64.sh
-
The installer prompts “In order to continue the installation process, please review the license agreement.” Click Enter to view license terms.
-
Scroll to the bottom of the license terms and enter “Yes” to agree.
-
The installer prompts you to click Enter to accept the default install location. Click Enter.
-
The installer prompts “Do you wish the installer to initialize Anaconda3 by running conda init?” Enter “yes”.
-
The installer finishes and displays “Thank you for installing Anaconda<2 or 3>!”
-
(Optional) The installer provides a link to install PyCharm for Anaconda at https://www.anaconda.com/pycharm.
-
Close and open your terminal window for the installation to take effect, or you can enter the command source
~/.bashrc
- To run conda from anywhere without having the base environment activated by default, use:
conda init
conda config --set auto_activate_base False
- Launch Anaconda Navigator from terminal
$ source ~/anaconda3/bin/activate root
$ anaconda-navigator