Replies: 2 comments 1 reply
-
I use molten for regular python dev, but I don't think I've ever ran an entire file at once with it. I just run snippets of code. I use the floating windows in normal I just tested, I only see this issue with virtual text: With virtual text. I'm seeing that If you want to run the entire file and see output as virtual text, you can just set |
Beta Was this translation helpful? Give feedback.
-
Thanks for the hints. I think there might be something going on with the python file I was first using. It uses matplotlib's interactive feature for plots. I am not hundred percent certain about this, but when I tried with a simpler example that outputs only static images, I was able to see the output. I still have to play with the options as I see some quirks when using virtual text output, but at least when using the floating window I can see and enter the output. I'll close the question for now. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am at a point now where I think I got all the bits and pieces working. I followed the guides, borrowed lots of code from @benlubas dotfiles. I can open a notebook, initialize a kernel, run some/all cells, etc. That's quite nice actually, although very complex to setup (at least for me).
Now, I also tend to work with plain python files, mostly as a result of preferring neovim to a notebook in a browser (this predates molten and associated tools). The workflow then consisted in a split neovim window, the code in one pane and a terminal running IPython on the other. I used iron.nvim then to communicate with the kernel. How would you do something like this with molten? Is it even a good idea to think about such a workflow?
With the config I have now, I can open a python module, run a visual selection and see the output with portions of the code. But if attempt to run the whole file, I get a cryptic message saying
-- No lines in buffer --
. Maybe my setup still needs some tweaks here and there, but I thought about asking about your point of view regarding pure python and molten before digging further.BTW, thanks for your work. I know it's a collective effort with many parts needed, but you took the time and effort to create the glue needed so everything works.
Beta Was this translation helpful? Give feedback.
All reactions