How do I change output size before truncation from the Linux Terminal ?

I recently installed Wolfram Mathematica in a instance in Google Cloud using GPUs and I’m running it inside Jupyter Notebook, Python 3, using Wolfram Client library. However, big outputs, like a 400,000 connections social network are being prevented from being shown:

He is my code:

a1=list(a.iloc[:,1].astype(str))
a2=list(a.iloc[:,2].astype(str))
b=[i for i in list(a1)]
b2=[i for i in list(a2)]
punct=w1.Flatten(w1.StringCases(w1.CharacterRange(1, 65535), w1.PunctuationCharacter))
c1=w1.StringDelete(b,punct)
c2=w1.StringDelete(b2,punct)
edges=wlexpr('f[x_,y_]:=CommunityGraphPlot[Graph[UndirectedEdge[x[[#]], y[[#]]] & /@ Range[Dimensions[x][[1]]]],FindGraphCommunities[Graph[UndirectedEdge[x[[#]], y[[#]]] & /@ Range[Dimensions[x][[1]]]]]]');
h=w1.f(c1,c2);
path2 = "/home/rubens/Math/data2.jpg"
cr=session.evaluate(w1.Export(path2,h , "JPG"));

import imageio
import matplotlib.pyplot as plt
from PIL import Image

im1 = imageio.imread('/home/rubens/Math/data2.jpg') 
plt.imshow(im1)
plt.show()

I tried Show[] but it does not solve the problem. I noticed it’s possible to setup a maximum output before truncation and I guess this would solve my problem, but I don’t know how to do this using Linux terminal command line, given that Jupyter does not offer a Mathematica menu.

Any ideas are welcome.

Hi Ruben, unfortunately, I don’t have any answer to your question but I’m very interested in your setting up Wolfram Mathematica in an instance in Google Cloud using GPUs.

Could you share how you had set up this, or point me to a related guide or any sort of web resources about this setup?

Thanks again
Peter

Hi, I wrote the tutorial here:

Thanks Ruben! This is a really wonderful guide! I hope more Wolfram users would learn this, to make Wolfram technologies more powerful for the production!