Skip to content

Commit

Permalink
Update magic' help and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ticoneva committed Oct 8, 2022
1 parent 112ffc8 commit 313beb9
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions pystata-kernel/magics.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ class StataMagics():

# Format: magic_name: help_content
available_magics = {
'browse': '{} [-h] [N] [varlist] [if]',
'help': '{} [-h] command_or_topic_name'
'browse': '{} [-h] [N] [varlist] [if] [in]',
'help': '{} [-h] command_or_topic_name',
'quietly': ''
}

csshelp_default = resource_filename(
Expand Down Expand Up @@ -95,6 +96,9 @@ def magic(self, code, kernel):
return code

def magic_browse(self,args,kernel):
"""
Display data in a nicely-formatted table.
"""
env = get_config()
N_max = 200

Expand Down Expand Up @@ -151,6 +155,9 @@ def magic_browse(self,args,kernel):
return ''

def magic_help(self,args,kernel):
"""
Show help file from stata.com.
"""

code = args['code']

Expand Down

0 comments on commit 313beb9

Please sign in to comment.