예제 #1
0
    def _prompt_chapter_title_style(self):
        """
        Prompts the user to pick a Sphinx chapter style
        """

        # Dictionary of available Sphinx styles
        styles = {1: "Bjarne", 2: "Lenny", 3: "Glenn", 4: "Conny", 5: "Rejne", 6: "Sonny"}

        # Append comments to the menu when displaying it to the user.
        comments = {1: "(default)", 6: "(for international documents)"}

        return console.prompt_dictionary(styles, menu_comments=comments)
예제 #2
0
    def _prompt_output_style(self):
        """
        Prompts the user to pick an IPython output style.
        """

        # Dictionary of available output styles
        styles = {1: "simple", 2: "notebook"}

        # Append comments to the menu when displaying it to the user.
        comments = {1: "(recommended for long code segments)", 2: "(default)"}

        return console.prompt_dictionary(styles, default_style=2, menu_comments=comments)
예제 #3
0
    def _prompt_output_style(self):
        """
        Prompts the user to pick an IPython output style.
        """

        # Dictionary of available output styles
        styles = {1: "simple", 2: "notebook"}

        #Append comments to the menu when displaying it to the user.
        comments = {1: "(recommended for long code segments)", 2: "(default)"}

        return console.prompt_dictionary(styles,
                                         default_style=2,
                                         menu_comments=comments)
예제 #4
0
파일: sphinx.py 프로젝트: sxw1578/ipython
 def _prompt_chapter_title_style(self):
     """
     Prompts the user to pick a Sphinx chapter style
     """
     
     # Dictionary of available Sphinx styles
     styles = {1: "Bjarne",
               2: "Lenny",
               3: "Glenn",
               4: "Conny",
               5: "Rejne",
               6: "Sonny"}
     
     #Append comments to the menu when displaying it to the user.
     comments = {1: "(default)",
                 6: "(for international documents)"}
     
     return console.prompt_dictionary(styles, menu_comments=comments)