-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
git merge conflicts due to python 2 vs 3 #20
Comments
I actually submitted a PR to nbstripout to address this ages ago kynan/nbstripout#92 (I say ages - just realised it's only been 2 months) |
ah. too bad they didn't accept it yet. I guess for now we'll just have to reopen with python2 and recommit. |
any suggestions on how to do that (possibly have to remove |
no, they accepted it fine. Sorry i seem to have implied it was still open |
ah. not yet on |
|
|
you'll also have to do (at least once):
|
That seems to have worked. thanks! Could you maybe add this to the instructions here, but also in https://github.com/CCPPETMR/CCPPETMR_VM/blob/master/scripts/UPDATE.sh or ask for help from someone else... |
@paskino FYI I just updated the VM repo |
~casperdcl, the files now after #24 still contain Will a |
fixed again. I was filtering out |
@KrisThielemans in case you want to know: pip install -U nbstripout
git config --global filter.nbstripout.extrakeys '
metadata.celltoolbar metadata.kernelspec.display_name
metadata.kernelspec.name metadata.language_info.codemirror_mode.version
metadata.language_info.pygments_lexer metadata.language_info.version'
find SIRF-Exercises -name '*.ipynb' -exec nbstripout \{} \; |
thanks Casper. So I guess @johannesmayer will have to run this on #25 before merging? (or we could do it for him). (as the I'm just not 100% sure what this does if you then do a
correct? |
On second thought, I agree that this is uninstall/reinstall is not necessary. As far as I can see, here's how this works:
As far as I can see, the first step is only there to make sure that git thinks the file is modified. |
@casperdcl, here's an illustration of my struggles, despite all this. My local SIRF-Exercises is at ba34dd4. Due to whatever happened before, I have 2 "changed" files
However, the changes are "irrelevant":
(i.e. there's no diff after
Any suggestions? |
Also, I suspect that @DANAJK's observation that github no longer displays our notebooks nicely is probably because we stripped a bit too much. That's not a show-stopper, but a bit sad. |
|
sorry. ignore my comment. I thought I saw some notebooks displayed in raw format, but it seems fine now. |
summary of status:
We're therefore still in the case that all commits have to be made via a system that has the same |
removed `kernelspec.display_name` and `kernelspec.name` from `nbstripout` recommendation (see #20)
We use
nbstripout
to prevent conflicts due to notebook output, and to prevent output to be commited. Sadly, we still have conflicts when a notebook is commited with one Python version but run with another. Example:looks harmless but
The text was updated successfully, but these errors were encountered: