Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

4
Disable text wrapping in kernel?
Post Body

I like to access mathematica from my terminal and invoke the kernel like so: jupyter-console --kernel=wolframlanguage12. It generally works well.

However, there is a persistent word wrap around ~80 characters where the output will insert a backslash, newline and indent the following line to indicate a continuation of the output, like so

In[1]: Table[n, {n, 1, 30}]
Out[2]:
{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 
>   25, 26, 27, 28, 29, 30}

The wrapping happens at the same position regardless of my terminal width or FormatType. I would like to disable the text wrapping entirely. I have tried SetOptions[$Output, PageWidth -> Infinity], SetOption[InputNotebook[], LineBreakWithin -> False], and SetOptions[EvaluationNotebook[], LineBreakWithin -> False], but no change.

Does anyone know how I might disable the text wrapping when using the Wolfram kernel from jupyter console?

I have

CurrentValue[EvaluationNotebook[], FrontEndVersion]
12.0 for Linux x86 (64-bit) (April 8, 2019)

Thanks.

EDIT: SOLVED!

It was some shenanigans with WolframLanguageForJupyter which I used to install the wolframscript jupyter kernel. It had hardcoded $defaultPageWidth = 89 and used it in various request handling routines. I have substituted $defaultPageWidth = Infinity and it works, as long as I never want to set the PageWidth to something different.

Author
Account Strength
100%
Account Age
11 years
Verified Email
Yes
Verified Flair
No
Total Karma
13,092
Link Karma
584
Comment Karma
12,216
Profile updated: 1 month ago
Posts updated: 10 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
4 years ago