Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'Visdom' object has no attribute 'updateTrace' #359

Closed
blister1824 opened this issue May 21, 2018 · 5 comments
Closed

AttributeError: 'Visdom' object has no attribute 'updateTrace' #359

blister1824 opened this issue May 21, 2018 · 5 comments

Comments

@blister1824
Copy link

Hey guy. I am a newer to visdom and I try the code
viz.updateTrace( X=np.random.rand(255), Y=np.random.rand(255), win=win, name='new_trace', )
online but then I get the bug AttributeError: 'Visdom' object has no attribute 'updateTrace'
My version is the newest version 0.1.8.3 and i wonder know if there is any bug in the newest version?

@JackUrb
Copy link
Contributor

JackUrb commented May 21, 2018

As noted in #358, updateTrace was deprecated more than 6 months ago and removed in the last major update (0.1.8). You can update traces directly using line and scatter

@JackUrb JackUrb closed this as completed May 21, 2018
@YashSunidhi
Copy link

AttributeError: 'Visdom' object has no attribute 'updateTrace'. What Update , I need to make Callback code to get away with this issue?

@JackUrb
Copy link
Contributor

JackUrb commented Jun 11, 2018

Rather than calling updateTrace, you can simply use scatter or line with the update you want to make. Please view the demo for examples

@soulslicer
Copy link

Can someone please tell me how to port this line to the new API

        #self.viz.updateTrace(X=np.array([x]), Y=np.array([y]), env=self.env, win=self.plots[var_name], name=split_name)

I can't find any solution anywhere

@JackUrb
Copy link
Contributor

JackUrb commented Nov 12, 2018

@soulslicer are you trying to append or replace? Is it a line or a scatter plot? Depending on which, you'll just use viz.scatter or viz.line with the parameters update='append' or update='replace' and the rest of the parameters as you've provided above.

menshikh-iv pushed a commit to piskvorky/gensim that referenced this issue Jan 11, 2019
…e()`) (#2252)

* using viz.line() instead of viz.updatetrace()

Visdom had changed it's API according to this post: fossasia/visdom#359

* add simple test for visdom viz.line() update graph API (for visdom >= 0.1.8)

* use easydict instead of argparse

* use self defined class instead of easydict

* change to test lda callback update graph function

* fix python2 subprocess don't have TimeoutExpired Atttribute error

* fix lint error

* fix lint error

* upd test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants