Splunk Dev

How do you get Matplotlib to work with Splunk SDK for Python

kmattern
Builder

Windows 2008 r2 32 bit
Splunk 6.2.2
Splunk SDK for Python

I have been having fun with Python and generating tables and other text based outputs from Splunk but now want to generate charts and graphs. I've beating my head against the wall for two weeks trying to understand how to properly install Matplotlib and numpy. Everywhere I look I'm told to use pip but I can't find a version of pip to install that doesn't appear to require pip itself. I'm not in a position where I can build and compile the source code for pip, numpy, matplotlib or any other product.

All I want to know is how do I get graphing libraries installed that will work with the Splunk SKD for Python? Surely it can't be that hard but it does appear that the available information is obfuscated.

0 Karma

jangid
Builder

Have you tried Python for Scientific Computing Splunk app? I was also getting issue with numpy and pandas library but after installing this app and adding below two lines in my script it works like a charm.

import exec_anaconda
exec_anaconda.exec_anaconda()
0 Karma

BernardEAI
Communicator

I have managed to get this working, but only while running the Python for Scientific Computing Splunk app version 1.3. When I change to any version above that, it no longer works. Has anybody else encountered this issue?

0 Karma

DalJeanis
Legend

A user posted how to install numpy here - https://answers.splunk.com/answers/138727/help-installing-numpy.html

Try those steps, and let us know if it helps.

0 Karma
Get Updates on the Splunk Community!

Splunk Up Your Game: Why It's Time to Embrace Python 3.9+ and OpenSSL 3.0

Did you know that for Splunk Enterprise 9.4, Python 3.9 is the default interpreter? This shift is not just a ...

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...

Cultivate Your Career Growth with Fresh Splunk Training

Growth doesn’t just happen—it’s nurtured. Like tending a garden, developing your Splunk skills takes the right ...