Coder Social home page Coder Social logo

learning-python's Introduction

TNEL Python Tutorial

Using python for ephys data

Step 1 (by yourself)

Setting up Python

Only for windows. Mac and Linux are good to go already.

Option 1) Install anaconda (has a bunch of very useful modules and programs built-in) (https://www.anaconda.com/distribution/)

Option 2) Install basic python (https://www.python.org/)

Learn basic python

This may take a bit depending on your experience programming. learnpython.org looks like a very good starting point. Lots of other options too. Youtube, w3schools (only up to file handling), etc.

Step 2 (With us)

Setting up GitHub

  • Create a github account. (DON'T USE UMN EMAIL!)

  • Download git (https://gitforwindows.org/).

  • Open Git Bash

  • Use commands "cd" (change directory) and "ls" (list) to change to where you want to save your files. i.e. "cd Documents". "cd.." takes you up a directory.

  • Create a new folder for GitHub "mkdir GitHub" (make directory), and go into it "cd GitHub".

  • Now back to your browser and go to our github repository (https://github.com/tne-lab/learning-python). Click fork in the upper right corner. Then click on your account in the resulting pop-up window. This will make a private version for yourself.

  • Now go to your private repo (https://github.com/CHANGETOYOURUSERNAME/learning-python) and copy the link from the green clone button.

  • Back to git bash and type "git clone https://github.com/CHANGETOYOURUSERNAME/learning-python". If you copied the link with the green clone button, simply type "git clone" the RIGHT-click with the mouse to paste the link. This creates a copy on your local hard-drive for yourself.

Download data from google drive

TNEL-UMN/Protocols and Tutorials/Python

Copy folder OP7 into folder named data within learning-python folder.

Open Main in juypter

Start a juypter notdebook and open up the main.ipynb file which is located in the folder that you cloned from github.

Complete it.

Step 3

Push your new changes to github so they will be backed up.

  • Return to git bash and "cd" into your learning-python folder.

  • Use the command "git add -A" to add all files to be staged to be commited.

  • Use the command "git commit -m "My first commit"" to commit the changes. This means that these files are the most up to date changes.

  • Use the command "git push" to push the files up your github repository so they will be saved both locally and in the cloud. Go to your github repo (https://github.com/CHANGETOYOURUSERNAME/learning-python) and make sure your new changes are there.

learning-python's People

Contributors

markschatza avatar fjkdasilva avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.