Ask Your Question
1

search_doc readable format

asked 2018-02-18 11:46:29 +0100

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.

Daniel

edit retag flag offensive close merge delete

Comments

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 23:22:39 +0100 )edit

What version of Sage are you using?

John Palmieri gravatar imageJohn Palmieri ( 2018-02-19 23:25:17 +0100 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-02-19 18:19:21 +0100

I see gibberish when I execute that command. Try

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

or

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

Comments

2
John Palmieri gravatar imageJohn Palmieri ( 2018-02-19 18:23:44 +0100 )edit

With

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)

with

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

I get the same as my original command

Daniel

danielvolinski gravatar imagedanielvolinski ( 2018-02-19 21:15:04 +0100 )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 23:24:54 +0100 )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

Stats

Asked: 2018-02-18 11:46:29 +0100

Seen: 636 times

Last updated: Feb 19 '18