Skip to content

Latest commit

 

History

History
45 lines (21 loc) · 899 Bytes

cheatcheet.md

File metadata and controls

45 lines (21 loc) · 899 Bytes

cheatsheet

  1. Always check with python version and environment you have loaded.

    python --version
    which python
    
  2. To install anaconda with the install_anaconda3 script:

    ./install_anaconda [-h] [dir=anaconda3] [version=2024.06-1]
    source anaconda3/python_start.sh
    
  3. To start the anaconda navigator, from which many things can be loaded

    anaconda-navigator
    
  4. Or use their CLI equivalents

    jupyter notebook your_notebook.ipynb
    spyder your_notebook.py
    
  5. Conversion of notebooks to pure python ( "File -> Download as -> Python (.py)" in the browser environment will also do it)

    jupyter nbconvert --to script your_notebook.ipynb
    

    you can now exectute it, and run it

    chmod +x your_notebook.py
    ./your_notebook.py
    

    and not tried yet

     pip install spyder-notebook
    
  6. more to come...