Python for bibliotekarer @ Handelshøyskolen BI, Oslo, NO

19. nov 2018, 13.00–16.00
20. nov 2018, 09.00–16.00

Påmelding

Instructors: Fredrik H. Juell, Hans Gunnar S. Lian, Annika Rockenberger, Dan Michael O. Heggø

Helpers: Ole Andreas Solberg, Mads Baklien, Kyrre T. Låberg

Generell informasjon

Library Carpentry / Biblioteksløyd er gratis kurs av og for bibliotekarer og andre som jobber i og med bibliotek. Dette kurset er for deg som nikker ja til minst ett av følgende:

Denne workshopen gir en introduksjon til programmering, du vil skjønne hva det handler om, samt komme igang med koding selv, gjennom å gjøre oppgaver. Workshopen går over 1,5 dager. Det er mulig å delta på kun dag 2 hvis du allerede har litt programmeringserfaring eller har hatt dag 1 på Library Carpentry tidligere. For alle andre, der programmeringens verden er ukjent, så anbefaler vi sterkt å delta begge dager.

Metodologien bygger på Library Carpentry. For mer info om hva vi lærer bort og hvorfor, se artikkelen "Library Carpentry: software skills training for library professionals".

Who: The course is for librarians, archivists, and other information workers. You don't need to have any previous knowledge of the tools that will be presented at the workshop.

Where: Rom A2-060, Handelshøyskolen BI Campus Oslo, Nydalsveien 37. Get directions with OpenStreetMap or Google Maps.

When: 19. nov 2018, 13.00–16.00
20. nov 2018, 09.00–16.00. Add to your Google Calendar.

Requirements: Participants must bring a laptop with a Mac, Linux, or Windows operating system (not a tablet, Chromebook, etc.) that they have administrative privileges on. They should have a few specific software packages installed (listed below). They are also required to abide by Library Carpentry's Code of Conduct.

Contact: Please email fredrik.h.juell@bi.no for more information.


Schedule

Dag 1: 19. november 2018 (halv dag)

13:00 Introduksjon - Datatyper, oppklaring av begrep og uttrykk
14:00 RegExp - Regulære uttrykk - En metode for avansert tekstsøk, disseksjon av tekst-data
15:00 Forsiktig intro til programmering
16:00 Slutt
Spredte kaffepauser kan forekomme.

Dag 2: 20. november 2018

09:00 Intro til programmering i Python
12:00 Lunsjpause
13:00 Python til biblioteksarbeid
16:00 Slutt

We will use this collaborative document for chatting, taking notes, and sharing URLs and bits of code.


Syllabus

Day 1: Introduction to Data

  • Intro to data
  • Jargon busting
  • Keyboard shortcuts
  • Plain text formats
  • Naming files
  • Regular expressions
  • Reference...

Day 2: Programming in Python

  • Analyzing Patient Data
  • Repeating Actions with Loops
  • Storing Multiple Values in Lists
  • Analyzing Data from Multiple Files
  • Making Choices
  • Creating Functions
  • Errors and Exceptions
  • Defensive Programming
  • Debugging
  • Command-Line Programs
  • Reference...

Dag 2 kommer vi først til å gå gjennom en del utvalgte emner fra den velprøvde introduksjonsmodulen til Software Carpentry (over). Deretter ser vi på noen konkrete eksempler på hvordan vi kan bruke programmering i Python i biblioteksammenheng.

Undervisningen blir på norsk med engelsk kursmateriell.


Setup

To participate in a Library Carpentry workshop, you will need access to the software described below. In addition, you will need an up-to-date web browser.

We maintain a list of common issues that occur during installation as a reference for instructors that may be useful on the Configuration Problems and Solutions wiki page.

Python

Python is a popular language for research computing, and great for general-purpose programming as well. Installing all of its research packages individually can be a bit difficult, so we recommend Anaconda, an all-in-one installer.

Regardless of how you choose to install it, please make sure you install Python version 3.x (e.g., 3.6 is fine).

We will teach Python using the Jupyter notebook, a programming environment that runs in a web browser. For this to work you will need a reasonably up-to-date browser. The current versions of the Chrome, Safari and Firefox browsers are all supported (some older browsers, including Internet Explorer version 9 and below, are not).

Windows

Video Tutorial
  1. Open https://www.anaconda.com/download/#windows with your web browser.
  2. Download the Python 3 installer for Windows.
  3. Install Python 3 using all of the defaults for installation except make sure to check Make Anaconda the default Python.

macOS

Video Tutorial
  1. Open https://www.anaconda.com/download/#macos with your web browser.
  2. Download the Python 3 installer for OS X.
  3. Install Python 3 using all of the defaults for installation.

Linux

  1. Open https://www.anaconda.com/download/#linux with your web browser.
  2. Download the Python 3 installer for Linux.
    (The installation requires using the shell. If you aren't comfortable doing the installation yourself stop here and request help at the workshop.)
  3. Open a terminal window.
  4. Type
    bash Anaconda3-
    and then press tab. The name of the file you just downloaded should appear. If it does not, navigate to the folder where you downloaded the file, for example with:
    cd Downloads
    Then, try again.
  5. Press enter. You will follow the text-only prompts. To move through the text, press the space key. Type yes and press enter to approve the license. Press enter to approve the default location for the files. Type yes and press enter to prepend Anaconda to your PATH (this makes the Anaconda distribution the default Python).
  6. Close the terminal window.