Skip to content
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

Revert unintended effects of #1966 #1974

Merged
merged 3 commits into from
May 6, 2023
Merged

Revert unintended effects of #1966 #1974

merged 3 commits into from
May 6, 2023

Conversation

tuncbkose
Copy link
Contributor

@tuncbkose tuncbkose commented Apr 12, 2023

Revert to the previous default filename behavior

$ ls
test.ipynb
$ jupyter nbconvert --to notebook --output out.ipynb test.ipynb 
[NbConvertApp] Converting notebook test.ipynb to notebook
[NbConvertApp] Writing 72 bytes to out.ipynb
$ jupyter nbconvert --to notebook test.ipynb 
[NbConvertApp] Converting notebook test.ipynb to notebook
[NbConvertApp] Writing 72 bytes to test.nbconvert.ipynb

Closes #1970.

Edit:
Additional things to fix:

  • Cannot convert equally named notebooks in different directories in-place #1979 same nb names in different directories
    • Fixed by removing the incorrect check that was failing (and an associated test). As a result, if output_base doesn't include some format section (like {notebook_name}), some files might get overwritten. This should not happen unless the user specifically wants it.
  • I don't think using {notebook_filename} will always work the way it was intended. Even if it does, it doesn't have any tests, which I should add.
    • Just removed this functionality as it doesn't seem to work cohesively with existing FilesWriter configuration.

Now also closes #1979.

@tuncbkose
Copy link
Contributor Author

tuncbkose commented Apr 12, 2023

@meeseeksdev tag bug

Edit: Wasn't sure if I could label, guess not

@lumberbot-app
Copy link

lumberbot-app bot commented Apr 12, 2023

Awww, sorry tuncbkose you do not seem to be allowed to do that, please ask a repository maintainer.

@krassowski krassowski added the bug label Apr 12, 2023
@tuncbkose tuncbkose marked this pull request as draft April 21, 2023 10:41
@tuncbkose tuncbkose changed the title Revert output naming change by #1966 Revert unintended effects of #1966 Apr 21, 2023
@tuncbkose tuncbkose marked this pull request as ready for review April 21, 2023 11:42
@tuncbkose
Copy link
Contributor Author

Not sure if failures are related

@krassowski
Copy link
Member

I restarted the failing CI jobs, maybe these are just flaky.

@tuncbkose
Copy link
Contributor Author

Rebasing onto main

@tuncbkose
Copy link
Contributor Author

Failure seems unrelated to me

Copy link
Contributor

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@blink1073 blink1073 merged commit f0d86bc into jupyter:main May 6, 2023
@tuncbkose tuncbkose deleted the out branch May 6, 2023 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants