Disable Jupyter Notebook Automatic Hyperlink

In my notebook, I print some data from cleared web pages. Some of them are untagged hyperlinks, for example. https://stackoverflow.com. Unfortunately, Notebook prints them as an actual hyperlink (i.e., wraps it with tags) on the output page and shortens it. (Thus, the end result in HTML is as follows:. <a href="https://stackoverflow.com">https://stacko...</a>) The field is set to code, but this is still happening. Is there any way to disable this behavior?

+4
source share
1 answer

Decision

Enter the following text into the empty cell of your Jupyter laptop:

%%javascript
Jupyter.utils.autoLinkUrls = function (txt) {
    return txt;
}

Explanation

URL- IPython ( Jupyter) 2012 . URL-, URL- <a href=.../>. , autoLinkUrls (...) .

, URL- "autolinking" - JavaScript autoLinkUrls, Jupyter, %%javascript .

+1

Source: https://habr.com/ru/post/1677972/


All Articles