Comments (7)
Images don't render in this plugin by default b/c they're really janky. But yeah, without image.nvim or the wezterm plugin, images can't render in the terminal
from molten-nvim.
Yeah, but how? this is a plugin built with python, it has python dependencies which rocks cannot install.
I've seen there are some tools to package python applications (and their deps) into a single binary but I haven't spent too much time looking into them b/c I just don't think that it's worth it (not to mention that I'm not sure it will work b/c it needs to (should) use neovim's python3 path). Rocks.nvim folks can still install this plugin from git.
If you have any suggestions or want to look into it I'm happy to start a conversation and help out if you find a way to do it.
from molten-nvim.
I know poetry exists and I use that. I can look into the process to see if it's possible. Would greatly simplify the install process for most people since you can include image.nvim as a dependency. I'll go ask the rocks.nvim folks to see if they have thoughts.
from molten-nvim.
Thanks for looking into it. Ping me when you ask so I can keep an eye on it, simplifying the install process would make my life a lot easier
from molten-nvim.
Hey 👋
one of the rocks.nvim maintainers here. I've been browsing through this plugin's docs.
Here are my thoughts so far:
- The recommended way to install the python dependencies is into a virtualenv.
Something like aluarocks-build-poetry-nvim
build backend for luarocks could potentially solve this.
We have similar build backends for tree-sitter parsers and for Rust/mlua projects. - However, it looks like Neovim would need to be configured to use the venv.
This is a manual step that I don't see as being possible to automate with luarocks. - Another issue: Installing a luarocks package shouldn't pollute anything outside of the install tree.
- Creating a
~/.virtualenv/neovim
violates this principle. - Installing python packages globally also violates this principle.
- Creating a
~/.local/share/nvim/rocks/.virtualenv
doesn't.
- Creating a
- An option might be to for the build backend to create a virtualenv in the luarocks install tree.
And rocks.nvim could configure Neovim to use that virtualenv.
I'm not sure yet if this is a good idea. And there's still the open question about how or whether to clean up the python dependencies on removal. - As of today, it appears that this plugin requires a manual installation of the python dependencies, regardless of which plugin manager is used to install it.
So maybe it makes sense to publish it to luarocks first, with only Lua dependencies, and then to worry about the python dependencies later?
from molten-nvim.
idk, I don't see any real advantage to using luarocks. This plugins only lua dependencies are optional. The python deps are the only required ones, and luarocks provides nothing there. Publishing on luarocks might just lead to confusion.
I'm considering a rewrite of this plugin to use rust with mlua to avoid python and remote plugins as a whole, at which point I will absolutely publish on luarocks.
from molten-nvim.
Does any functionality not work without any of the image providers being installed?
If so, then adding one of them to the luarocks dependencies as a default provider can improve the user experience (as long as it's possible to override the setting).
rocks.nvim installs dependencies as libraries, not plugins. So adding an optional dependency as a default isn't a big deal like it is for conventional plugin managers.
from molten-nvim.
Related Issues (20)
- [Bug] Virtual text wrap for pandas HOT 2
- [Bug] MoltenEnterOutput error pynvim.api.common.NvimError: Invalid key: 'footer' HOT 2
- [Bug] MoltenEvaluateVisual Unable to Find Visual Selection HOT 4
- [Bug] assertion error on :MoltenRestart HOT 9
- [Bug] Recent image.nvim changes throw off image positions by one HOT 1
- [Bug] Nvim stops working after kernel is set ready HOT 1
- [Help] Cannot configure Molten HOT 3
- [Help] [Molten] Cell not Found HOT 3
- [Help] Looking for a minimal example for quickly and directly Displaying SVG paths in nvim image HOT 12
- [Help] What's are the difference between `dccsillag/magma-nvim` and `benlubas/molten-nvim`? HOT 2
- [Help] Opening output in new buffer HOT 3
- Running several cells prompts for a kernel on every cell HOT 2
- [Help] [bug] How do I open result like pygwalker. HOT 1
- [Help] Enter Output Cell HOT 1
- [Help] Creating new notebooks? HOT 4
- [Feature Request] Remote JupyterLab support HOT 6
- [Bug] <Your title here> HOT 1
- [Help] Annoying "--No lines in buffer--" message HOT 2
- [Help] Wezterm Image Provider opens pane but gives error when showing plot HOT 1
- [Help] Can't get Notebook setup to work HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from molten-nvim.