question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using Arviz with Pymc3 and Tkinter

See original GitHub issue

Hi! I am using pymc3 for MCMC( pmx.sample() ) and then az.summary(trace).In Jupyter notebook everything works fine,but when i use Tkinter (I am making a GUI) ,and press the button I assigned for arviz summary command,nothing happends(in the command line of notebook doesnt appear error or something similar).The rest of the GUI runs without problems.

Code Example

import arviz as az

def Summary_MCMC(): 
    
    az.summary(trace,var_names=["rpl","b","period","Rstar","Mstar","mean"])
        

myLabel15= Label(root,text="See your parameters after the MCMC",fg="white",bg="black")
myLabel15.grid(row=43, column=4)
    
myButton15 = Button(root, text="Summary", padx=40, pady=11, command=Summary_MCMC, fg="blue", bg="white")
myButton15.grid(row=43, column=5)  

arviz version 0.11.2 pymc3 version 3.11.2 pymc3-ext version 0.1.0 tkinter version 8.6.10

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
canyon289commented, May 10, 2021

@Xamoutsa Closing is just us trying to keep things organized. Feel free to keep asking for help but do know none of us are tkinter experts so frankly speaking their docs and sites may be more helpful. However we are happy to share any knowledge we do have!

1reaction
ahartikainencommented, May 10, 2021

We call plt.show internally which is why you see the output from plots.

You need to search how to show pandas dataframe or transform it to something that can be shown in the gui (either as a text or image).

I will close this issue, as this is not a bug in arviz.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Arviz error when using plot functions of pymc3 - PyMC Discourse
This is the latest update on a test code ( I installed pymc3 after cloning it using this command: “ python setup.py install...
Read more >
ArviZ Quickstart — ArviZ 0.14.0 documentation
For much more powerful querying, analysis and plotting, we can use built-in ArviZ utilities to convert PyMC3 objects to xarray datasets.
Read more >
Community — ArviZ dev documentation
This page covers how can someone participate in the ArviZ community (this someone could be you!), gives an overview of the ecosystem of...
Read more >
problem while processing pymc3 data · Issue #1279 - GitHub
I'm unable to sample a blackbox likelihood in pymc3. There is an exception raised when arviz is asked to process the trace.
Read more >
PyMC3 and Arviz: Visualizing highest posterior density for ...
I would like to visualize posterior density that corresponds to it's condition. How can I plot hpd for each group? EDIT: Issue has...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found