lpy
lpy copied to clipboard
Minimal Python IDE for GNU Emacs
Please add the packge to MELPA :)
`2e` doesn't output timing results Take following code snippet for example: ```python import timeit timeit.timeit( "obj.method()", """ class SomeClass: def method(self): pass obj= SomeClass() """) ``` It should output: ```...
It seems `C-2` is much slower than `C-1` on my Windows laptop.  In my understanding, this is because `C-2` starts a new python process every time. Why not use...
Hi, I found following evaluation gives wrong results: ```python mylist = [1, 2, 3] mylist2 = [ x for x in mylist if True ] ``` After evaluation, `mylist2` is...
Hi, Oleh Could you please consider adding async eval to lpy? Or if you don't have time to do that, could you please point a direction for me? I wan't...
Hi, Oleh Could you please consider adding worf-goto function to lpy? Currently I use `counsel-outline`, but it is not as visually appealing as `worf-goto`. Thanks!
More consistent result for edge cases: - when (current-column) is multiple of 4, but should be special ``` python x = (",".join(["1", "2"]) | .startswith("1")) ``` - point in multiline...
Borrowed from : (defun elpy-shell--ensure-shell-running () "Ensure that the Python shell for the current buffer is running. If the shell is not running, waits until the first prompt is visible...
Now that treesitter is in Emacs proper, it sounds reasonable to incorporate it. Link for context: https://archive.casouri.cc/note/2023/tree-sitter-in-emacs-29/index.html
Try this code snippet: class Robot: __counter = 0 def __init__(self): type(self).__counter += 1 @classmethod def RobotInstances(cls): return cls, Robot.__counter print(Robot.RobotInstances()) x = Robot() print(x.RobotInstances()) y = Robot() print(x.RobotInstances()) print(Robot.RobotInstances())...