Python IDE configuration questions

Questions

I have several questions about setting up doom emacs for some python development I do. I can post them all here, but if it is better suited to break them out into individual topics, I’m happy to do so.

  1. Consider a directory my_proj with the file my_file.py in it, Inside of my_file.py is the following:
class Foo():
	def print_it(self, print_str):
		print('here is your string: {}'.format(print_str))
		
	def return_it(self, return_str):
		print('returning your string...')
		return return_str

How does one configure doom emacs so I could get a breadcrumb trail at the top of the buffer that shows where the cursor is in the code? As an example, if I placed my cursor on the line print('returning your string...') I would like to see at the top of the buffer something like > my_proj > my_file.py > Foo > return_it.

In my doom/init.el file, I have:

:tools
lsp

:lang
(python +lsp +pyls)

and I installed the pyls using pip install python-language-server[all].

  1. Is it possible to have a buffer that displays and allows the editing of images that get produced in python code, similar to the feature in Spyder?

  2. Is it possible to have a variable explorer?

System information


Loading data dump...

Any assistance is greatly appreciated. Thanks in advance for your help!!

  1. You can temporarily toggle breadcrumbs with SPC c l T b. That key combination is mapped to (lsp-headerline-breadcrumb-mode). You can use this snippet in your config.el to always have breadcrumbs:
(after! lsp-mode
  (setq lsp-headerline-breadcrumb-enable t))
  1. I never used Spyder and don’t know what kind of images you mean.
  2. Take a look at GitHub - emacs-lsp/lsp-treemacs: lsp-mode treemacs, enabled with :ui (treemacs +lsp) in init.el. I don’t use it, but it might offer what you’re looking for.