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

failed on jupyter #48

Closed
gg4u opened this issue Apr 28, 2019 · 1 comment
Closed

failed on jupyter #48

gg4u opened this issue Apr 28, 2019 · 1 comment

Comments

@gg4u
Copy link

gg4u commented Apr 28, 2019

I installed it on jupyter, but failed to import:

import community
part = community.best_partition(g)
mod = community.modularity(part,g)

AttributeError: module 'community' has no attribute 'best_partition'

Any solution for this?

(Would you consider rename the module as per the pip install distribution - or from networkx import louvain ? )

@gg4u
Copy link
Author

gg4u commented Apr 28, 2019

Figured out. Reinstalled, and reloaded, all works fine.

Ps. for who does not knwo how to reload a module in jupyter:

from importlib import reload
reload(community)

@taynaud taynaud closed this as completed Apr 6, 2020
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

2 participants