-
Notifications
You must be signed in to change notification settings - Fork 294
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 diff for ipynb files is being replaced by the notebook editor #633
Comments
Same behavior to me too. |
I also experience this. In general would love for the option to open the notebook outside the editor (like the edit settings in json button). |
Thank you for reporting the issue @wpbrown. This should be solved when we release the new native notebooks, you can try those here: https://devblogs.microsoft.com/python/notebooks-are-getting-revamped. In the mean time, another solution is to turn off the setting 'python.dataScience.useNotebookEditor', that makes it so that the notebook editor does not open automatically when selecting a .ipynb file. Instead it'll open the json, and in the case of the diff window it will also display like normal. If you disable the setting, you can still open your .ipynb's with the notebook editor by right clicking and selecting 'Open in Notebook Editor'. Let me know if this helps. |
It is strange, because this used to work up until 3 weeks ago or so. |
Which version of the extension was this working in? |
This was working in v2021.2.603412351, but broken again in v2021.3.619093157 |
Note we also used to have the jupyter.useNotebookEditor option, which would always open notebook files as json. Pulling this back to triage. I believe that it was regressed by us full rolling out the CustomEditor. Fixing might depend on how fast we feel the new native UI is rolling out, as that would resolve this issue. |
We believe this is a problem that should be solved on the VS Code side, because a custom editor should not be used for git diff. |
Filed upstream microsoft/vscode#118764 |
According to microsoft/vscode#118764 (comment), for custom editors if we want the raw json to show up in the diff view we would need to implement a raw text custom editor provider and reroute git diff file opens to that provider. Like Ian said earlier, whether we fix this depends on the rollout timeline for the new preview native notebooks. |
Is there a work-around for this;
|
I hacked around it by pinning to an earlier version. I think I followed this from @jamesmyatt
This might be a workaround if you don't need anything bleeding edge |
You are right, |
When pasting this in the settings.json (as in the last response from @chenfeibo) it just grays out and doesn't work. Is this an issue ?, or the setting must go inside a different object than the root of the settins json object ? |
Just re-checked mine, these lines are greyed as well. It could be some latest updates invalidated them. Then I don't know what operation helped, maybe the installation of a inside build. |
Confirmed @jamesmyatt and @scrambldchannel's posts. I resorted to pinning Jupyter back to that version as well. |
Thanks. Then it seems like a confirmed issue on the current extension version. |
@Ortega-Dan I don't know how the releases on github translate to the versions available in the VSCode app itself, but if you go to your extensions panel in VSCode, go to your Jupyter extension, click the gear, click "Install another version", should see "2021.2.603412351" as one of the options you can roll back to. |
@Ortega-Dan Version 2021.2.603412351 doesn't seem to be working for me, I get the following error: The most recent version 2021.6.999230701 loads two kernels side to side in the diff view but doesn't highlight the differences. |
Cool, working for me too - thanks for sorting this out team 👍 |
Just to make sure I haven't messed up my settings too much, this is still just available on Insiders, not VSCode proper, right? That's how it's looking on my machine at least |
@benlindsay It's available to everyone in Insiders and a fraction of users in Stable. If you're in VS Code stable you can also opt into the new native notebooks UI: https://github.com/microsoft/vscode-jupyter/wiki/Native-Notebook-Support-in-VS-Code#enabling-the-new-experience |
@joyceerhl Neat, thanks for the info! I did that and got the new stuff in VSCode stable now. Git diffing looks great! The kernel stuff was acting really weird but that's a battle for another day :) |
@joyceerhl Thank you so much; that new git diffing workflow is so much better 👏💯 |
Thanks for your feedback. This issue is addressed with new native support for editing notebooks starting with v1.59 of VS Code. If this issue continues to occur in the latest build of VS Code, please reopen or enter a new issue. |
Bug: Notebook Editor, Interactive Window, Editor cells
Steps to cause the bug to occur
Actual behavior
Diff window shows briefly and then notebook editor replaces the tab.
Expected behavior
Diff editor should remain open. Notebook editor should not start in a git diff view.
Your Jupyter and/or Python environment
Please provide as much info as you readily know
Python Output
Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer, @joyceerhl
The text was updated successfully, but these errors were encountered: