This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
python [2013/07/10 10:24] zoza created |
python [2017/05/04 13:31] (current) zoza |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== docker ====== | ||
+ | <code> | ||
+ | docker run -it -p 8888:8888 -p 6006:6006 -v sharedfolder:/root/sharedfolder floydhub/dl-docker:cpu bash | ||
+ | root@4aa86b7ed9d6:~# jypiter notebook | ||
+ | bash: jypiter: command not found | ||
+ | root@4aa86b7ed9d6:~# jupyter notebook | ||
+ | </code> | ||
+ | |||
====== ipython ====== | ====== ipython ====== | ||
load in an external .py file: | load in an external .py file: | ||
- | [code] | + | <code python> |
%load file_name.py | %load file_name.py | ||
- | [/code] | + | </code> |
+ | |||
+ | and call any function defined in it. | ||
+ | |||
+ | ====== pygame ====== | ||
+ | get key from a user input as pygame.event | ||
+ | http://content.gpwiki.org/index.php/Python:Pygame_keyboard_input |