-
-
Notifications
You must be signed in to change notification settings - Fork 78
Change default value for cleanup
to False in latex_cleanup
#251
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
base: master
Are you sure you want to change the base?
Conversation
|
||
@contextmanager | ||
def latex_cleanup(cleanup=True, workdir='.', whitelist=None, greylist=None): | ||
def latex_cleanup(cleanup=False, workdir='.', whitelist=None, greylist=None): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it work? It would seem this default is not used in:
jupyterlab-latex/jupyterlab_latex/build.py
Lines 306 to 307 in db3dd9b
with latex_cleanup( | |
cleanup=c.cleanup, |
Can it be changed on the trait level?
jupyterlab-latex/jupyterlab_latex/config.py
Lines 29 to 30 in 58abc9c
cleanup = Bool(default_value=True, config=True, | |
help='Whether to clean up ".out/.aux" files or not.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also I guess the help message should clarify that it is more aggressive than just out/aux
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it work? It would seem this default is not used in:
Right! Sorry I didn't catch how it's working.
I have modified config.py
and clarified (I hope) the documentation.
Thanks for your review!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It fell through the cracks but it looks good to me - thank you!
Dear maintainers,
I'm planning to use this extension in production together with jupyterlab-git.
In this pull request I'm suggesting to change the default value of
cleanup
in thelatex_cleanup
context manager toFalse
: I believe this is a safer default solution (see #158, #124).Thank you for considering it.