Skip to content

Doesn't viz.open() work any longer? #45

@SikFar

Description

@SikFar

I have this code:

from numpy import random
from lightning import Lightning
lgn = Lightning(local=True)

lgn.enable_local()

n = 100
x = random.randn(n)
y = random.randn(n)
viz = lgn.scatter(x, y)
viz.open()

But I get this error:

Traceback (most recent call last):
  File "/Users/username/PycharmProjects/MLtest/mltest.py", line 32, in <module>
    viz.open()
AttributeError: 'VisualizationLocal' object has no attribute 'open'

I'm trying to show plot locally and running the program on PyCharm. I have the lightning app installed and using python 2.7.10. Im warming up and hoping to use lightning vis with mye spark kmeans clustering code :)
@freeman-lab

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions