Ask Your Question

search_doc readable format

asked 2018-02-18 04:46:29 -0500

danielvolinski gravatar image

Using Jupyter Notebook in Windows Native

The following code:

search_doc("curl", whole_word=True)

produces a bunch of unreadable lines, is there any way to make them readable?

If those lines are internet links, they should also be clickable.


edit retag flag offensive close merge delete


Please provide more information: what does the output look like? (Provide a screenshot if you can't reproduce the text.)

John Palmieri gravatar imageJohn Palmieri ( 2018-02-19 16:22:39 -0500 )edit

What version of Sage are you using?

John Palmieri gravatar imageJohn Palmieri ( 2018-02-19 16:25:17 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2018-02-19 11:19:21 -0500

I see gibberish when I execute that command. Try

search_doc("curl", whole_word=True, interact=False)


print(search_doc("curl", whole_word=True, interact=False))
edit flag offensive delete link more


John Palmieri gravatar imageJohn Palmieri ( 2018-02-19 11:23:44 -0500 )edit


search_doc("curl", whole_word=True, interact=False)

I get

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 2276: ordinal not in range(128)


print(search_doc("curl", whole_word=True, interact=False))

I get the same as my original command


danielvolinski gravatar imagedanielvolinski ( 2018-02-19 14:15:04 -0500 )edit

With search_doc("curl", whole_word=True), I get a window with a long string starting aHRtbC9lbi9yZWZlcmVuY2UvZ2VuaW5kZXgtYWxsLmh0bWw6MTM5MTA6ICAgICAgPGxpPjxhIGhyZWY9Im1vZHVsZXMvc2FnZS9tb2R1b.... With interact=False, I don't get a separate window, and instead get a long string starting 'html/en/reference/genindex-all.html:13910: <li><a href="modules/sage/modules/free_module_element.html#sage.modules.free_module_element.FreeModuleElement.curl">curl() (sage.modules.free_module_element.FreeModuleElement method)</a>\n.

John Palmieri gravatar imageJohn Palmieri ( 2018-02-19 16:24:54 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2018-02-18 04:46:29 -0500

Seen: 63 times

Last updated: Feb 19