Closed danilopeixoto closed 2 years ago
Thanks for the suggestion @danilopeixoto
Introducing a new user setting will be best to address this. I can provide pointers if you want to push a PR.
Hi @fcollonval,
First, thank you for the Mamba Gator development.
Is this the line to add a condition?
Adding a condition here, will prevent the Gator from loading packages in background? Next loading events will happen just when using the Mamba Gator UI?
Is this the line to add a condition?
Indeed this is the one.
Adding a condition here, will prevent the Gator from loading packages in background? Next loading events will happen just when using the Mamba Gator UI?
Yes
To add a user parameter, you will need to edit the settings json schema (something like fromHistory
):
Then you can modify the line:
like that:
- Private.loadPackages(model);
+ if (settings?.get('<param name>') ?? true) {
+ Private.loadPackages(model);
+ }
Thanks @fcollonval. Created #190.
Closing as resolved.
Description
Can Gator provide an option to disable background loading? Mamba Gator is slowing down the JupyterLab at startup.
Reproduce
mamba install -y mamba_gator
Expected behavior
Limitating resource usage or option to disable background loading. A better performance.
Context
Environment: K8s CPUs: 2 Memory: 8G