$30 off During Our Annual Pro Sale. View Details »

PythonRC (PyConSK 2016)

PythonRC (PyConSK 2016)

PythonRC Lightning Talk @ PyConSK 2016, Bratislava, SK

Ondrej Sika

March 11, 2016
Tweet

More Decks by Ondrej Sika

Other Decks in Technology

Transcript

  1. PythonRC
    Ondrej Sika
    Slush Pool (https://slushpool.com)
    11. 3. 2016, PyConSK 2016, Bratislava, Slovakia

    View Slide

  2. Add PYTHONSTARTUP to .bashrc
    echo export PYTHONSTARTUP=~/.pythonrc.py >> ~/.bashrc
    source ~/.bashrc

    View Slide

  3. .pythonrc.py
    print "Hello PyConSK 2016!"
    from pprint import pprint as pp
    import math

    View Slide

  4. Try!
    sika@sika-x1:~$ python
    Python 2.7.9 (default, Mar 1 2015, 12:57:24)
    [GCC 4.9.2] on linux2
    Type "help", "copyright", "credits" or "license" ...
    Hello PyConSK 2016!
    >>> pp({’a’: 1, ’b’: 2})
    {’a’: 1, ’b’: 2}
    >>> math.pow(3, 4)
    81.0
    >>>

    View Slide

  5. Thank you!
    [email protected]
    http://ondrejsika.com
    @ondrejsika
    Sources:
    http://url.os1.cz/pyconsk2016/

    View Slide