Skip to content

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cmarmo
Copy link

@cmarmo cmarmo commented Jul 4, 2025

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 the latex_cleanup context manager to False: I believe this is a safer default solution (see #158, #124).

Thank you for considering it.

Copy link

github-actions bot commented Jul 4, 2025

Binder 👈 Launch a Binder on branch cmarmo/jupyterlab-latex/cleanup-false

@krassowski krassowski added the bug label Jul 11, 2025
@@ -12,7 +12,7 @@
from .util import run_command

@contextmanager
def latex_cleanup(cleanup=True, workdir='.', whitelist=None, greylist=None):
def latex_cleanup(cleanup=False, workdir='.', whitelist=None, greylist=None):
Copy link
Member

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:

with latex_cleanup(
cleanup=c.cleanup,

Can it be changed on the trait level?

cleanup = Bool(default_value=True, config=True,
help='Whether to clean up ".out/.aux" files or not.')

Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants