viv/examples/named_env.py

18 lines
362 B
Python
Raw Permalink Normal View History

2022-12-19 23:22:23 -06:00
#!/usr/bin/env python3
"""
# Viv env is named
Meaning that it will save it within the viv cache not using a hash.
*This environment could then be reused by specifying the name*
"""
2023-03-15 13:16:09 -05:00
__import__("viv").use("rich", name="rich-env")
2022-12-19 23:22:23 -06:00
from rich.console import Console
from rich.markdown import Markdown
console = Console()
md = Markdown(__doc__)
console.print(md)