Browse Source

load ipython rich extension in archivebox shell

Nick Sweeting 1 year ago
parent
commit
bde0bf8263
1 changed files with 5 additions and 0 deletions
  1. 5 0
      archivebox/core/shell_welcome_message.py

+ 5 - 0
archivebox/core/shell_welcome_message.py

@@ -2,4 +2,9 @@ from archivebox.logging_util import log_shell_welcome_msg
 
 
 
 
 if __name__ == '__main__':
 if __name__ == '__main__':
+    # load the rich extension for ipython for pretty printing
+    # https://rich.readthedocs.io/en/stable/introduction.html#ipython-extension
+    get_ipython().run_line_magic('load_ext', 'rich')
+    
+    # print the welcome message
     log_shell_welcome_msg()
     log_shell_welcome_msg()