Skip to content

Commit 2e460d5

Browse files
committed
python environment
1 parent 7d080f3 commit 2e460d5

3 files changed

Lines changed: 67 additions & 4 deletions

File tree

JupyterEnv/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Install Your Own Python Environment
2+
This short description will show you, how to set up Your own Python environment with Jupyter notebook and a lot of useful Libraries. During this process, You'll setup a virtual machine so it will work on Windows, MacOS and Linux operating system as well.
3+
4+
## Requirements
5+
* https://www.virtualbox.org/
6+
* https://www.vagrantup.com/
7+
8+
## Setup
9+
### Step 1
10+
Download and install VirtualBox and Vagrant.
11+
12+
### Step 2
13+
Download this repository https://github.com/fazekasda/MyPythonLeanrPack/archive/master.zip (or clone with git). Uncompress the zip file.
14+
15+
### Step 3
16+
Open a terminal. Enter the folder where You uncompressed the zip file, and enter the MyPythonLeanrPack-master folder and the JupyterEnv folder. (type this command: cd where_uncompressed_the_zip_file/MyPythonLeanrPack-master/JupyterEnv)
17+
18+
## Step 4

JupyterEnv/Vagrantfile

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# -*- mode: ruby -*-
2+
# vi: set ft=ruby :
3+
4+
Vagrant.configure(2) do |config|
5+
6+
# the base virtual machine ubuntu 14.04 64bit
7+
config.vm.box = "ubuntu/trusty64"
8+
9+
# forward the 8888 port, to acccess to jupyter web interface from the host
10+
config.vm.network "forwarded_port", guest: 8888, host: 8888
11+
12+
# specify the memory for the virtual machine
13+
config.vm.provider "virtualbox" do |vb|
14+
# if you need more memory change this value
15+
vb.memory = 1024
16+
# if you need more cpu uncomment the next line
17+
#vb.cpus = 2
18+
end
19+
20+
# install python2, python3, jupyter and libraries with all dependencies
21+
config.vm.provision "shell", inline: <<-SHELL
22+
sudo apt-get update
23+
sudo apt-get install -y python-dev
24+
sudo apt-get install -y python-setuptools
25+
sudo apt-get install -y python-pip
26+
27+
sudo pip install --upgrade ipython[all]
28+
sudo mkdir /vagrant/notebook
29+
SHELL
30+
31+
config.vm.provision "shell", run: "always", inline: <<-SHELL
32+
ipython notebook --notebook-dir=/vagrant/notebook --no-browser --ip=0.0.0.0 &
33+
SHELL
34+
35+
end

README.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
# MyPythonLeanrPack
22
Yet another learn python pack
33

4-
## How to begin?
4+
## Setup a python environment
5+
6+
7+
## Where to begin?
58
* https://www.python.org/ - Home of Python
69
* https://www.codecademy.com/learn/python - Interactive platform to learn Python (and many other language as wel). If you are never user Python before, start here.
710

@@ -18,6 +21,9 @@ Yet another learn python pack
1821
* Jupyter
1922
* https://www.continuum.io/why-anaconda - Scientific Python environment.
2023

24+
## Libraries
25+
*
26+
2127
## IDEs
2228
* https://www.pythonanywhere.com/ - A full Python environment in the cloud with a lot of [libraries](https://www.pythonanywhere.com/batteries_included/) and many Python version. You can write Python scripts in the browser. There is a free plan.
2329
* https://www.jetbrains.com/pycharm/ - My favorite IDE
@@ -27,16 +33,20 @@ Yet another learn python pack
2733
* https://automatetheboringstuff.com/ - Python for beginners, a different way, whit a lot tutorial
2834
* http://docs.quantifiedcode.com/python-anti-patterns/ - How to NOT use Python. Advanced level
2935

36+
### Advanced Python
37+
* http://www.effectivepython.com/
38+
* http://shop.oreilly.com/product/0636920032519.do
39+
3040
### Other Books
3141
* http://www.obeythetestinggoat.com/ - Python testing
3242

33-
## FUN
34-
* https://quantifiedcode.github.io/code-is-beautiful/ - Visualization of Python code
35-
3643
## Lectures
3744
* https://www.youtube.com/watch?v=2NSbuKFYyvc
3845

3946
## Podcasts
4047
* https://talkpython.fm/
4148
* http://podcastinit.com/
4249
* http://frompythonimportpodcast.com/
50+
51+
## FUN
52+
* https://quantifiedcode.github.io/code-is-beautiful/ - Visualization of Python code

0 commit comments

Comments
 (0)