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.
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.
Subreddit
Post Details
- Posted
- 4 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/Mathematica...