Skip to content

erje3158/python_testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Testing

This git repository is where I'm storing all my code testing the capabilities of Python.

Conda Installation

For simplicity, I've been using the Conda environmental management system. It is considered "best practice" to use an environmental management system with mutliple versions of the Python interpreter installed when working with Python as to not mess up the base installation that ships with your OS. Python is highly package and interpreter dependent, so the last thing you want to do is overwrite your system's environmental variables and embedded installation of Python.

  • Install Miniconda
  • $ conda update conda
  • $ conda config --add channels intel
  • $ conda create -n idp intellpython3_full python=3: -n specifies idp as the name of this configuration

Using Conda

Typing $ source activate idp will open up a termainal session with your environmental variables pointing correctly to the version of Python associated with idp. Run a code with $ python <code_name>, or run an interactive session by typing $ python (exit with exit()). Exit the terminal session by $ source deactivate idp.

File Overview

  • code_sh.py: Simple read/write from file in shell script (self executable) format
  • code_ex.py: Basic Python code with read/write and gnuplot
  • rand.txt: Random file that can be manipulated
  • quad.gold: Text file with x,y coordinates for y=x^2 over x=[0,10]

About

Muckin' around with Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors