-
Notifications
You must be signed in to change notification settings - Fork 300
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
Feature request: force notebook to always serialize with an indent. #9491
Comments
Is there a way to share the file with you in private? If that helps. |
@RoyiAvital, what other extensions do you have installed? What steps did you take to repro the problem? For me I did this:
Tried the same thing with 'Create Jupyter Notebook' command from the command palette. Same results. |
Does it repro for you with a new notebook? |
Wouldn't it be easier if I just send you the files? Just to make sure I described thinks correctly, there is no error with those files. |
I have sent you the files. Let me know you got them. |
Yes. I can repro with your files. Thanks. |
I believe this is by design. It maintains the indent of the original file. If the original file has no indentation, it won't create a new one. Was the original file all on one line? If not can you e-mail me the original file? If I reformat the ipynb file as a json file with VS code (so it has an indentation on each line of 4 spaces), reopen it as an ipynb, then save it again, it maintains the 4 spacing indentation and multiple lines. |
It was 1 liner since I used Git and VS Code on it. Maybe add an option to auto do it on save? As this 1 line mode make it Git unfriendly. By the way, it would be also great to have "Save without Output on HD" mode (Git friendly save mode). |
I swear we've had this request already, but I can't seem to find it. Ah this one would be how we'd do that: |
@rchiodo , That's not what I meant. Namely on the HD I can save automatically a file with the output cleared yet, while I'm on the session, VS Code keeps the output visible (So it has a temp paired file for the output). The motivation is having a GIT friendly file on the working folder while in VS Code temp cache the output is kept for the current session. Currently what I do is that manually at the end of the session I click on |
I moved the suggestion for not saving output to another issue: #9514 We might add another setting to force VS code to save with multiple lines. That's what we'll leave this issue for. |
This feature request hasn't received any upvotes since it was created. |
@rchiodo , Can open and display it correctly.
Just when looking at the RAW file (Using text editors) it is one liner.
I wonder abut 2 things:
Originally posted by @RoyiAvital in #4576 (comment)
The text was updated successfully, but these errors were encountered: