You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NameError: name 'convert_some_words_to_disturbing_unicode_text' is not defined
i set env files as you told :
this is the code :
from cataclysm import consume
consume(globals())
s = "May the gods have mercy on us all"
corrupted = convert_some_words_to_disturbing_unicode_text(s, "mercy on us")
print_surrounded_by_ascii_art_of_an_old_scroll(corrupted, use_wcwidth_for_padding=True)
The text was updated successfully, but these errors were encountered:
Hi @shadee22 -- consume() itself only works properly in the interpreter or a notebook. Python globals can't easily be consumed otherwise, or I haven't found a clever way yet!
If this is from within a module or script, it might not work as well. You'd want to use doom instead like this:
fromcataclysmimportdooms="May the gods have mercy on us all"corrupted=doom.convert_some_words_to_disturbing_unicode_text(s, "mercy on us")
print(corrupted)
NameError: name 'convert_some_words_to_disturbing_unicode_text' is not defined
i set env files as you told :
this is the code :
from cataclysm import consume
consume(globals())
s = "May the gods have mercy on us all"
corrupted = convert_some_words_to_disturbing_unicode_text(s, "mercy on us")
print_surrounded_by_ascii_art_of_an_old_scroll(corrupted, use_wcwidth_for_padding=True)
The text was updated successfully, but these errors were encountered: