![]() you need to make sure your modules are reloaded each time you edit them (some. (kill-buffer "*Python*") Not so fast! ( sleep-for 0.5 )) ( run-python ( python-shell-parse-command ) nil nil ) ( python-shell-send-buffer ) Pop new window only if shell isnt visible in any frame. Python loads a module only the first time you import the. ![]() ( defun my-python-shell-run () ( interactive ) ( when ( get-buffer-process "*Python*" ) ( set-process-query-on-exit-flag ( get-buffer-process "*Python*" ) nil ) ( kill-process ( get-buffer-process "*Python*" )) If you want to clean the buffer too. Python 2 and 3: from future import division (at top of module) assert 3 / 2 1.5. The argument must be a module object, so it must have been successfully imported before. Kill process to solve the reload modules problem. reload (module) ΒΆ Reload a previously imported module. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |