Comments (4)
Related question on Stackoverflow: https://stackoverflow.com/questions/54068308/override-gitattributes-from-command-line
from jupytext.vim.
A problem with git-gutter
that will prevent this approach is the presence of --no-ext-diff
in https://github.com/airblade/vim-gitgutter/blob/1d422b9f98194e38bc56e54192c9bc66d95c21f1/autoload/gitgutter/diff.vim#L135
Edit: actually, this can help in some way, as it disables the standard nbdime
command
, making place for a --textconv
.
from jupytext.vim.
In theory, assuming nbdime
is installed, the following settings should make it work with git-gutter
:
let g:gitgutter_git_args = "-c diff.jupyternotebook.textconv='jupytext --from=ipynb --to=md -o -'"
let g:gitgutter_diff_args = "--textconv"
Except that git-gutter
tries to convert both the current buffer and the index to md, but this fails because the current buffer is already in md!
from jupytext.vim.
I think the better solution might be, instead of opening and writing the ipnb as different to the buffer, you auto-open the equivalent .py etc. That's the desired VCed file anyway in most cases, and prevents accidentally overwriting the ipynb file.
from jupytext.vim.
Related Issues (18)
- Fails for notebooks with spaces in filename HOT 2
- Linting with ALE not working HOT 1
- Error with format R (with CAPS)
- Ipynb file may get overwritten, causing updates to fail. HOT 6
- Name vim buffer with the jupytext_filename (foo.py) not with the original filename (foo.ipynb) HOT 1
- Auto-reload current file in Jupyter Notebook? HOT 4
- Detect notebook language HOT 3
- g:jupytext_fmt = 'md:myst' doesn't work HOT 2
- Cell title is not saved
- Jupytext plugin works but displays an error message when vimrc is empty HOT 1
- Can we make this work with vim's DiffOrig command?
- Cannot open .ipynb without .md file
- file type changed from python to json when starting editing
- Unable to delete temp files on Windows
- Create a blank ipynb notebook from vim-templates HOT 2
- No syntax highlighting HOT 6
- Can I use jupytext to convert Rmd to ipynb 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 jupytext.vim.