Posts

Showing posts from May, 2018

Python 3.6 - Matplotlib - simple PLOT

Image
This is a simple example of python plot. You can install all the imported modules by using: pip install numpy, pip install padas etc. import matplotlib as matplotlib from IPython import get_ipython get_ipython().run_line_magic( 'matplotlib' , 'inline' ) import numpy as np import pandas as pd import matplotlib import pandas_datareader as web import matplotlib.pyplot as plt start = '1/1/2018' end  = '1/5/2018' ge = web.DataReader( 'GE' , data_source = 'morningstar' , start =start  , end =end) ge %matplotlib inline ge[[ 'Close' , 'High' ]].plot( subplots = True , color = 'blue' , figsize =( 8 , 6 ))

PYTHON 3.6.5 INSTALLATION

Image
PYTHON 3.6.5 INSTALLATION Download Python 3.6.5 Install (run as administrator) Python 3.6.5 installs in C:\Users\pkirklewski\AppData\Local\Programs\Python\Python36-32 If Python is correctly installed you should be able to use the python launcher (just type python in the start menu and launch the application) Python launcher should give you the python command line environment Hit Windows + R and type sysdm.cpl then hit Enter Go to Advanced tab and Environment Variables Under System variables hit New and type Variable Name: PYTHON_HOME Variable value: C:\Users\pkirklewski\AppData\Local\Programs\Python\Python36-32 Where variable value is the installation directory of python You also need to modify the Path variable in System variables Edit Text and add the installation location of python Hi OK and Apply and open a new CMD window Type python -V