viv/examples/named_env.py

18 lines
367 B
Python
Raw 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*
"""
__import__("viv").activate("rich", name="rich-env")
from rich.console import Console
from rich.markdown import Markdown
console = Console()
md = Markdown(__doc__)
console.print(md)