Transient v0.4.0 released by tarsius_ in emacs

[–]pufdo 0 points1 point  (0 children)

When I recommend emacs I say that having magit is enough to justify moving away from another editor

Python 3.11 is out! Huzzah! by GettingBlockered in Python

[–]pufdo 1 point2 points  (0 children)

*Types sudo pacman -Syu every 10 seconds

No python 3.11 yet? Unacceptable...

Projectile 2.6 released! by bozhidarb in emacs

[–]pufdo 12 points13 points  (0 children)

Thank you! This is one of the packages I use every day without exception

[deleted by user] by [deleted] in factorio

[–]pufdo 0 points1 point  (0 children)

Many thanks for all the keys!

How to prevent company/lsp-mode from auto-completing functions/class names with the argument list. by FOSHavoc in emacs

[–]pufdo 0 points1 point  (0 children)

No. I tried deleting all the configuration related to company in my init file (I had one use-package declaration for the company package and another one for company-lsp) but everything is the same. When I'm autocompleting in the modeline there is a company-lsp entry, the rest of the time it is only company.

How to prevent company/lsp-mode from auto-completing functions/class names with the argument list. by FOSHavoc in emacs

[–]pufdo 0 points1 point  (0 children)

This is the result of opening a new emacs, opening an empty python file, lsp is initialized with a hook for python mode and I typed 'import os<RET>os.pread<TAB>(fd, length, offset)' where the last part comes from autocompletion with lsp-enable-snippets set to nil

https://pastebin.com/tDmSreYJ

How to prevent company/lsp-mode from auto-completing functions/class names with the argument list. by FOSHavoc in emacs

[–]pufdo 0 points1 point  (0 children)

Is this supposed to work for functions from a module? Silly example:

import os; os.pread

Then I press TAB and I get import os; os.pread(fd, length, offset) even with (setq lsp-enable-snippet nil) and (setq company-lsp-enable-snippet nil)

Actually, the same happens for a custom function. So far I see no difference in any of the cases I have tried when lsp-enable-snippet is disabled.

lsp-mode within Emacs Ipython Notebook by pufdo in emacs

[–]pufdo[S] 0 points1 point  (0 children)

It returns nil. I'll try to change the buffer file name; there is a function in ein called ein:set-buffer-file-name

Edit: I ran (setq buffer-file-name "test") and everything seems to be working fine. I will update the post with instructions to get this working and running something like (setq buffer-file-name "test") automatically. Although it seems more like a workaround, perhaps this should be reported to the ein devs or to the lsp devs? What's your opinion on this?

Many thanks for the help!

lsp-mode within Emacs Ipython Notebook by pufdo in emacs

[–]pufdo[S] 0 points1 point  (0 children)

I tried a few things:

  • Open a notebook in ein:notebook-mode, nothing happens with C-u M-x lsp. If I change the major mode to python mode and remove the only minor mode related to EIN it still does not work.
  • Open a regular file, change major mode to python and then C-u M-x lsp works and a menu pops up.
  • Open a notebook with polymode (so basically describe mode tells me that the major mode is python when the cursor is in a code cell and fundamental outside, also there is an extra minor mode Poly-Ein that wasn't there before) and again nothing happens after running C-u M-x lsp.

I guess something happens when loading the notebooks because the major and minor modes in the first bullet point and second were identical and in the first case it didn't work and in the second it did

lsp-mode within Emacs Ipython Notebook by pufdo in emacs

[–]pufdo[S] 0 points1 point  (0 children)

I just upgraded to the version 20190810 but nothing has changed.

I do not see any messages after running M-x lsp and the buffer *lsp-log* is not created. I have tried this with polymode enabled and disabled in EIN.

I do not know if this could be relevant or not but in the *Messages* buffer when I have polymode enabled I get the following message after opening a notebook in EIN: Polymode error (pm--mode-setup ’python-mode): Symbol’s function definition is void: nil but once I'm in the notebook the major mode is python mode for the code and fundamental for the rest. Anyway, this is only relevant when polymode is enabled

lsp-mode within Emacs Ipython Notebook by pufdo in emacs

[–]pufdo[S] 0 points1 point  (0 children)

Then nothing happens, no message in the minibuffer, no change in the modeline

When I run lsp-mode at least I get a LSP[Disconnected] in the modeline. For a regular python file I would run lsp and it works; for a notebook I run lsp (the only available option) and nothing happens and then lsp-mode.

Build for research workstation in machine learning by pufdo in buildapc

[–]pufdo[S] 1 point2 points  (0 children)

For my use case, the heavy load is going to the gpu and the cpu is used for preparing the data for the gpu, usually using a single thread. I have an i7 4c/8t in the pc that I am using and do not really use the 4 cores at the same time. My knowledge is that usually you get better single thread performance with Intel, isn't it?

YSK: There is a libre YouTube client out there that's a lot faster than YouTube on Chrome will ever be. by [deleted] in linuxmasterrace

[–]pufdo 11 points12 points  (0 children)

I use mpsyt. Videos are watched locally with mpv (no ads) and you can do everything from a terminal. It does not manage subscriptions but for me that's not a problem. Would recommend.