Recently I came across Zed, a text editor that is built in Rust and I was so happy with it that I am now using it everywhere.
It's extremely fast, works with multiple languages, and I am particularly happy that they support ollama for their AI assistant.
That means that I can run llama 3.1 on my laptop privately without sending my code anywhere.
It also support Python kernels, so basically you get a similar experience of Jupyter Notebooks, right there on the IDE.
It feels like a next generation text editor. Check it out: https://zed.dev
For running llama 3.1, you simply need to install ollama it and it will work out of the box: https://ollama.com you will have the ability to run many different LLMs, with llama 3.1 being the best one at the moment.