Skip to content

GenevieveMilliken/Introduction-to-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to Introduction to Python

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

Anaconda Installation

MacOS

  1. Download the graphical macOS installer for Python 3.10.

  2. Double-click the downloaded file and click continue to start the installation.

  3. Answer the prompts on the Introduction, Read Me, and License screens.

  4. Click the Install button to install Anaconda in your ~/opt directory (recommended).

  5. Click the continue button.

Mac install type

  1. OR, click the Change Install Location button to install in another location (not recommended) On the Destination Select screen, select Install for me only.

Mac install destination

  1. Click the continue button.

  2. Optional: To install PyCharm for Anaconda, click on the link to https://www.anaconda.com/pycharm. Or install without.

  3. A successful installation will display "The installation was completed successfully". Verify Installation.

Mac install complete

Windows

  1. Download the Anaconda installer.

  2. OPTIONAL: Verify data integrity with SHA-256.

  3. Double click the installer to launch.

  4. Click Next.

  5. Read the licensing terms and click “I Agree”.

  6. Select an install for “Just Me” unless you’re installing for all users (which requires Windows Administrator privileges) and click Next.

  7. Select a destination folder to install Anaconda and click the Next button. See FAQ.

Windows Installation Destination

  1. 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.

Windows Installation Option

  1. 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.

  2. Click the Install button. If you want to watch the packages Anaconda is installing, click Show Details.

  3. Click the Next button.

  4. 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.

  5. After a successful installation you will see the “Thanks for installing Anaconda” dialog box:

Windows Installation Complete

Linux

  1. In your browser, download the Anaconda installer for Linux (Python 3.7 version).

  2. OPTIONAL: Verify integrity with SHA-256 checksum:

sha256sum /path/filename

  1. 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

  1. The installer prompts “In order to continue the installation process, please review the license agreement.” Click Enter to view license terms.

  2. Scroll to the bottom of the license terms and enter “Yes” to agree.

  3. The installer prompts you to click Enter to accept the default install location. Click Enter.

  4. The installer prompts “Do you wish the installer to initialize Anaconda3 by running conda init?” Enter “yes”.

  5. The installer finishes and displays “Thank you for installing Anaconda<2 or 3>!”

  6. (Optional) The installer provides a link to install PyCharm for Anaconda at https://www.anaconda.com/pycharm.

  7. Close and open your terminal window for the installation to take effect, or you can enter the command source

~/.bashrc

  1. To run conda from anywhere without having the base environment activated by default, use:

conda init

conda config --set auto_activate_base False

  1. Launch Anaconda Navigator from terminal

$ source ~/anaconda3/bin/activate root

$ anaconda-navigator

About

NYUHSL "Introduction to Python" Workshop

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published