wasabi
wasabi copied to clipboard
Removing "Loading" text after loading?
Hello,
I couldn't find anything in the docs about how to get rid of the "Loading..." text fully after the loading is "finished"? I tried it in a Jupyter Notebook and this is the result:
Any suggestions?
Thanks for the report. It seems like in the notebook, the sequence used to erase a line and flush is somehow interpreted differently? Relevant code is here:
https://github.com/ines/wasabi/blob/2beb8fe98cdfe9cafcae0a7c7b18c9738119e337/wasabi/printer.py#L201-L202
I'd need to investigate this. The whole cursor movement stuff, erasing lines etc. is definitiely one of the trickier parts – at least, I've always found it kinda difficult to get right across platforms and configurations and there might still be cases where it fails.
I know!! I am so happy to have come across your package though! (Found it when I looked over the spaCy
code!) I have had so much trouble with flushing... ugh.
I have looked into this issue myself now and cannot find a solution!
@ines do you think the newest release will help with this issue?
@kallewesterling any solution ?
@ardyfeb I have nothing to do with the dev of this package. Ask @ines! :)
@ines Revisited this issue and it now looks like it works better, in a way. At last, the .good()
message displays at the end of the loop:
However, the context manager does not generate any output in the Notebook. This is what it looks like when inside the with msg.loading()
manager: