Ask Your Question
0

How to wrap the output or magnify it?

asked 2025-05-05 01:27:36 +0200

l3gi0n gravatar image

updated 2025-05-05 01:29:32 +0200

I am using Sagemath with JupyterLab-Desktop and/or Jupyter notebook / JupyterLab notebook

As you can see in the picture, The inverse of the matrix is too small, and the output of the expand doesn't wrap. you have to use the horizontal scroll:

https://ibb.co/xtcx0tHF

image description

Ho to fix these?

CODE:

a,b,c,d,e,f,g,h,i = var('a b c d e f g h i')
A = matrix([[a,b,c],[d,e,f],[g,h,i]])
show(A.inverse())

show(expand((a+b+c)^20))
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2025-05-05 10:32:36 +0200

eric_g gravatar image

To magnify the inverse matrix output, right-click on it and in the menu that appears, select Math Settings -> Zoom Trigger -> Click.

As for the wrapping, it works for me out of the box with Jupyterlab running SageMath 10.6. Which version of SageMath are you using?

edit flag offensive delete link more

Comments

When I right-click the matrix, I don't get MathJax's context menu. I get a menu with "MathJax Scale x1.5" which makes it bigger a bit. I guess it is adequate.

I am using Sagemath 10.6 with JupyterLab Desktop Version 4.4.1. notice that I am using the show() function to make the output pretty.

l3gi0n gravatar imagel3gi0n ( 2025-05-05 15:22:45 +0200 )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

1 follower

Stats

Asked: 2025-05-05 01:27:36 +0200

Seen: 149 times

Last updated: May 05