Skip to content

Latest commit

 

History

History
115 lines (66 loc) · 2.93 KB

win10_python_setup.md

File metadata and controls

115 lines (66 loc) · 2.93 KB

How to work with Python (pip,virtualenv) on a Windows machine

These are the steps that worked for me to setup an appropriate Python environment when you have to work with a Windows machine

What you need to install: Atom Editor and Anaconda Navigator

Install Anaconda Navigator

Add python and conda "where python" installation path to Windows Environment Systemvariable PATH

> where python
> where conda 

Copy & Paste the installation path to PATH

> SETX "%PATH%";C:\ProgramData\Anaconda3;C:\ProgramData\Anaconda3\Scripts; 

Install Atom Editor

Settings

  • check boxes for "Show Indent Guide" and "Show Invisibles"

alt text

Install Atom Packages script, atom-python-virtualenv, autocomplete-python, autosave-onchange, (minimap)

Virtual Env for python environments

> apm install <atom-python-virtualenv> 

Use Anaconda Prompt to install packages

> conda install < package-name >

Customization

'''less
// overwrite in Settings > "Open Config Folder" > style.less
// added for output panel
div.panel-body.padded pre {
font-size: 16px; // set to whatever font size you want
}

Daily Routine: How to open Atom Editor with a given Virtualenvironment

Open Anaconda Prompt

> activate name-of-environment

> atom

Daily Routine: Start Jupyter Notebook

> jupyter notebook 

https://blog.dominodatalab.com/lesser-known-ways-of-using-notebooks/

in jupyter notebook

Tables Are Cool
command + shift + P shows a search box $1600
col 2 is centered $12
zebra stripes are neat $1
command + shift + P | shows a search box 
'''bash
% lsmagic //get a list of all the available magics
!pip install some_package
!head xyz.txt
%env //to list your environment variables.
??tf.arg_max //shows source code
help(tf.arg_max)


tab | code completion
shift + tab | parameters
shift + tab (2x) | doc
shift + tab (3x)| seperate window

Shortcuts in Atom

  shift+ctrl+b | run script
  shift+ctrl+p | opens search box 

References

https://medium.com/@GalarnykMichael/install-python-on-windows-anaconda-c63c7c3d1444 https://flight-manual.atom.io/using-atom/sections/atom-packages/ https://atom.io/packages/autocomplete-python https://towardsdatascience.com/environment-management-with-conda-python-2-3-b9961a8a5097


some link

![alt text][atom-icon]