It sounds probably doable. However, you’ve got to help us help you.
I suspect you are using Python to calculate the matrix? Probably using some packages?
Jupyter notebook is code agnostic. You could be using a Jupyter notebook backed with a Julia kernel or an R kernel. This is important to understand because it probably will help you down the line as you search for solutions to hurdles you encounter such as this one.
However, there may be some IPython/Jupyter tricks that could help you in this specific case, and so I’m not going to tell you that you should seek help elsewhere just yet. However, you need to provide more to go on if you want some actionable advice. As discussed in the post
Getting good answers to your questions, could you make a minimal example (a tiny matrix of ,say six values or two rows?) of your issue and share the notebook via Github, gist, or other code snippet sharing means? And honestly, if it’s really minimal you may just be able to just include it directly in reply here as blocks of code. To keep the pasted code snippets in a form they are useable by others trying to help you, see specifically the section ‘Block code formatting’ here for how you can post code blocks here by using 3 backticks (```) on their own line above and below your code. What you share just has to look like your actual data. Doesn’t have to be any of it actually.
And then with the minimal example set up, tell us what you’d expect to get back so you can paste it into your latex.
In case it helps in thinking about this, here are some posts & threads with code examples and resources for latex use in Jupyter:
- Display command output as math : IPython.display.Math?
- How to add Markdown inside a function to pretty print equation - #2 by fomightez
- How to type math in jupyterlab markdown extension? - #2 by fomightez
Those links and the content therein may not be pertinent now to your specific issue but may give you a sense of what’s possible in Jupyter, and how it could relate to getting it to the latex you are wishing to use out of Jupyter.