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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...