You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-10Lines changed: 12 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,19 @@
1
1
# TNEL Python Tutorial
2
2
3
-
Using python for neuroscience
3
+
These first three steps will be a great starting point for anyone trying to learn python with a slight focus on neuroscience.
4
4
5
-
## Step 1 (by yourself)
5
+
This was created and is being updated by Mark Schatza <schat107@umn.edu>. Feel free to use/share this freely. Reach out if you have any questions!
6
+
7
+
## Step 1
6
8
### Setting up Python
7
-
Only for windows. Mac and Linux are good to go already.
9
+
Only for windows. Mac and Linux have python set up already. However I would still look into using anaconda as it is a very useful tool for dealing with packages.
8
10
9
11
Option 1) Install anaconda (has a bunch of very useful modules and programs built-in) (https://www.anaconda.com/distribution/)
This may take a bit depending on your experience programming. learnpython.org looks like a very good starting point. I would work through the "Learn the Basics" and "Data Science Tutorials" as a first step. Make sure you understand for loops, dictionaries, arithmetic, and if/else statements. If you want some more help there are lots of other options too. Youtube, w3schools (only up to file handling), etc. If you have no programming experience an hour a day for a week should get you more than ready for our first project on Thursday.
16
+
This may take a bit depending on your experience programming. learnpython.org looks like a very good starting point. I would work through the "Learn the Basics" and "Data Science Tutorials" as a first step. Make sure you understand for loops, dictionaries, arithmetic, and if/else statements. If you want some more help there are lots of other options too. Youtube, w3schools (only up to file handling), etc. If you have no programming experience an hour a day for a week should get you more than ready for step 2.
15
17
16
18
There are also some phone apps that are really great if you're looking to learn while riding the bus!
17
19
@@ -21,20 +23,20 @@ There are also some phone apps that are really great if you're looking to learn
21
23
- If on windows or mac, download git (https://git-scm.com/downloads).
22
24
23
25
### Ensure Jupyter is installed
24
-
Open a jupyter notebook and open something like a simple helloworld.py file.
26
+
Open a jupyter notebook and make sure you can get to your documents folder (or wherever you will store your code).
25
27
26
28
If you can't open jupyter. Open a command line window and type "python pip install jupyter" and try again. If you're struggling I would advise to just install anaconda.
Contact me (schat107@umn.edu) if you are having trouble accessing.
33
+
Contact me <schat107@umn.edu> if you are having trouble accessing.
32
34
33
-
## Step 2 (With us)
35
+
## Step 2
34
36
### Setting up GitHub
35
-
- Open Git Bash
37
+
- Open Git Bash (or terminal if Linux/Mac)
36
38
37
-
- Use commands "cd" (change directory) and "ls" (list) to change to where you want to save your files. i.e. "cd Documents"
39
+
- Use commands "cd" (change directory) and "ls" (list) to change to where you want to save your files. i.e. "cd Documents". Look up a "bash command tutorial" for more information.
38
40
39
41
- Create a new folder for GitHub "mkdir GitHub" (make directory), and go into it "cd GitHub".
40
42
@@ -45,7 +47,7 @@ Contact me (schat107@umn.edu) if you are having trouble accessing.
45
47
- Back to git bash and type "git clone https://github.com/CHANGETOYOURUSERNAME/learning-python". This creates a local copy for yourself.
46
48
47
49
### Move data into working folder
48
-
Create a folder called data in learning-python folder. Copy folder Sample_Data into here.
50
+
Create a folder called data in learning-python folder. Copy folder Sample_Data (from google drive) into here.
49
51
50
52
### Open Main in juypter (in cmd line type: "jupyter notebook". You should then see it open in your browser)
51
53
Start a juypter notebook and open up the main.ipynb file which is located in the folder that you cloned from github.
0 commit comments