Comments (4)
This would be awesome. I can't offer a lot, but as far as matching cells goes, could potentially just rely on using markdown. Use code-blocks to define cells and the space between code blocks to define markdown-cells.
from molten-nvim.
@SigmaRichards Ideally this should work without relying on the file format. There are many ways that people convert ipynb
to plaintext. The most common are Quarto and Jupytext. Quarto converts to a markdown-esque format. Jupytext can convert to either a .py
file with comments delimiting cells, or a plain markdown file.
There are also other ways that people create notebook-like files, neorg and NotebookNavigator.nvim off the top of my head, both of those delimit cells in different ways.
I'd like for all of these methods to work with this command.
I also want to make clear that this wouldn't be converting markdown to ipynb
, which is a solved problem as far as I'm concerned. This would just be a way to add the outputs from molten to an existing, corresponding, ipynb
file.
from molten-nvim.
I'm also like 85% sure that just relying on the cell order in the file (in addition to the code content) will be enough to not confuse different cells
from molten-nvim.
@SigmaRichards feel free to checkout that PR, it's in a working state rn. simple instructions for testing: take a jupyter notebook file, convert it to a plaintext format however you want (make sure they have the same name, ie. test.ipynb and test.qmd) and then open the plaintext doc, run code with molten, and run :MoltenExport
.
You can then open a copy of the notebook file that was produced in jupyter-lab and see the output from the code you ran.
Keep in mind that things might break and I haven't extensively tested yet, if you find issues you can leave them here and I can be sure to iron them out!
from molten-nvim.
Related Issues (20)
- [Bug] Hydra conflicts with MoltenUpdateInterface running async HOT 3
- [Feature Request] Default kernel launch with python on's PATH? HOT 8
- [Help] Running full blocks HOT 4
- [Help] Treesitter text objects not loading HOT 2
- [Feature Request] connect to a remote jupyter kernel HOT 1
- [Help] What am I doing wrong? HOT 9
- [Help] Molten Not in a Cell / [Quarto It seems that the code runner is not initalized for this buffer HOT 7
- [Help] How to set up Python 3 provider HOT 9
- [Help] Virtual Text offset apply only to output text? HOT 11
- [Help] Same config on Arch Linux not working HOT 15
- [Feature Request] Add Lua Rocks for rocks.nvim HOT 3
- [Bug] MoltenExportOutput "attempt to index local 'opts' (a number value)" HOT 2
- [Bug] Output Window Shown In The Wrong Window HOT 3
- [Bug] Issue regarding the cell execution if we delete the content of the cell at the end of a file
- [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
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.