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

option to disable wall of ascii art on every mamba command run. #984

Closed
cjw296 opened this issue Jun 4, 2021 · 13 comments
Closed

option to disable wall of ascii art on every mamba command run. #984

cjw296 opened this issue Jun 4, 2021 · 13 comments

Comments

@cjw296
Copy link

cjw296 commented Jun 4, 2021

This takes up quite a lot of scroll buffer and I'd like to turn it off:


                  __    __    __    __
                 /  \  /  \  /  \  /  \
                /    \/    \/    \/    \
███████████████/  /██/  /██/  /██/  /████████████████████████
              /  / \   / \   / \   / \  \____
             /  /   \_/   \_/   \_/   \    o \__,
            / _/                       \_____/  `
            |/
        ███╗   ███╗ █████╗ ███╗   ███╗██████╗  █████╗
        ████╗ ████║██╔══██╗████╗ ████║██╔══██╗██╔══██╗
        ██╔████╔██║███████║██╔████╔██║██████╔╝███████║
        ██║╚██╔╝██║██╔══██║██║╚██╔╝██║██╔══██╗██╔══██║
        ██║ ╚═╝ ██║██║  ██║██║ ╚═╝ ██║██████╔╝██║  ██║
        ╚═╝     ╚═╝╚═╝  ╚═╝╚═╝     ╚═╝╚═════╝ ╚═╝  ╚═╝

        mamba (0.13.0) supported by @QuantStack

        GitHub:  https://github.com/mamba-org/mamba
        Twitter: https://twitter.com/QuantStack

█████████████████████████████████████████████████████████████

@marimeireles
Copy link
Member

$ export MAMBA_NO_BANNER=1 or --no-banner

@cjw296
Copy link
Author

cjw296 commented Jun 4, 2021

Thanks! Anything I can put in .condarc?

@adriendelsalle
Copy link
Member

Unfortunately not, mamba relies on conda rc configuration advertised here. You could use quiet for the same purpose.

Does it help ?

@cjw296
Copy link
Author

cjw296 commented Jun 4, 2021

I think quiet probably already has a meaning, so I guess this becomes a combo of one-or-other feature request:

  • just remove the ascii art, feels needless tbh.

  • instigate a .mambarc that enables this to be turned off.

Apologies if I come across as grumpy, the ascii art is very pretty, it just takes up a lot of space. Maybe consign it to the --help output?

@adriendelsalle
Copy link
Member

adriendelsalle commented Jun 4, 2021

The banner is also part of the tool identity.

You may feel more comfy to use micromamba that has a smaller banner:

$ micromamba --help

                                           __
          __  ______ ___  ____ _____ ___  / /_  ____ _
         / / / / __ `__ \/ __ `/ __ `__ \/ __ \/ __ `/
        / /_/ / / / / / / /_/ / / / / / / /_/ / /_/ /
       / .___/_/ /_/ /_/\__,_/_/ /_/ /_/_.___/\__,_/
      /_/

(...)

instigate a .mambarc that enables this to be turned off.

For that, you should open an issue upstream on conda's issues tracker.
EDIT: conda does not advertise such a banner so trying to include upstream that config has not sense. Thanks @marimeireles

@runette
Copy link

runette commented Jun 5, 2021

The banner is also part of the tool identity.

I find this a curious thing to say.

Tools don't have identity - they have utility. I measure the value of a hammer by how well it hammers and not by who made it. If every time I used a screwdriver it first announced "This screwdriver was brought to you by Stanley" it would go in the bin (and that is actually also the reason I refuse to use Audible!)!

I am not sure what you think is gained by the banner - I doubt very much anyone will decide to use Mamba "Because it has the best graphics"!

@marimeireles
Copy link
Member

marimeireles commented Jun 7, 2021

For that, you should open an issue upstream on conda's issues tracker.

This doesn't make sense for conda as they don't have any headers. (I don't think they would accept it?)
You think it's problem to get off their specification to add our own flag? I think it could be kinda easy since we'll have the set stuff merged soon.

@marimeireles
Copy link
Member

@adriendelsalle for micromamba all commands have a Configuration::instance(), one way to do it would be adding a flag that sets config.at("show_banner").set_value(false);. You think this could work?

@adriendelsalle
Copy link
Member

adriendelsalle commented Jun 7, 2021

@marimeireles
You're right about conda, they would have not interest to implementing reading of such a configuration they would not use themselves. Unfortunately mamba currently totally relies on conda rc files parsing so we have to stick with current options.

In micromamba, we could make the show_banner rc configurable but it would require to parse rc files before printing the banner (it's not the currently as it's done).
Yes what you pointed would work, but if we decide to only print the micromamba banner on info for example, we should revert it to have a default value false.
@wolfv any thoughts on that ? Do you would like to consider other policy/behavior about those banners (mamba and libmamba that would reflect into micromamba and rhumba)?

@runette
Tools, and organizations building those tools, do have identity from my perspective.

There is surely still room for improvements in mamba, and everyone is free to fill feature requests on this issue tracker. Doing so, it will start a discussion about evolution of the project with core developers/maintainers.

We are really happy to discuss about what options/flags/etc would make the user experience even better. This has to be done in a positive and constructive way.

For this particular case, we already provide multiple ways to hide this banner if you feel the experience is better without it (CLI --no-banner or --quiet, env variable MAMBA_NO_BANNER).

@cjw296
If you use mamba heavily, you can consider for now setting MAMBA_NO_BANNER env variable in your shell profile/rc file.

@cjw296
Copy link
Author

cjw296 commented Jun 8, 2021

instigate a .mambarc that enables this to be turned off.

@adriendelsalle - my point here was that, inevitably, mamba is going to have its own config options at some point that do not apply to conda, for this, a .mambarc would be the obvious location. If "turn off banners" is the first mamba-specific setting, then so be it ;-)

@cjw296
If you use mamba heavily, you can consider for now setting MAMBA_NO_BANNER env variable in your shell profile/rc file.

I'm no fan of environment variables all over the place, but if it's the only way... However, I do think mamba will inevitably need its own config options at some point, so would be good to have a file for them...

@loodvn
Copy link

loodvn commented Sep 28, 2022

xref: #587 (comment) for setting env variable automatically through conda instead of shell rc file, in case it helps:

"To set the environment variable automatically each time you activate your conda environment, you can do something like the following."

$ conda env config vars set MAMBA_NO_BANNER=1

@dddraxxx
Copy link

The command works well, but when I unset the variable conda env config vars unset MAMBA_NO_BANNER and re-run mamba command there is still no banner shown😂. Is there any way to solve it?

@jonashaag
Copy link
Contributor

We removed the banner entirely

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

No branches or pull requests

7 participants