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 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...