Comments (2)
Thanks for reporting this issue.
I normally use the module from within a Jupyter notebook, and so have not encountered this.
The drawing code assumes an interactive session is being used (e.g. python interactive interpreter / Jupyter notebook). However, when the script is run non-interactively, the matplotlib window closes when the python interpreter exits (which is normal behavior for matplotlib).
I will add an option to the draw_graph function which can be used to specify whether or not the interpreter should wait until the matplotlib window is closed before exiting.
A quick workaround that you can use in the mean time is to add this to the end of your script:
input("Press Enter to continue ...")
Now the matplotlib window will stay open until you hit the enter key, causing the program to complete.
from markov_clustering.
I'm having the same issue.
Python 3.5.2
Networkx 2.1
Matplotlib 2.2.2
from markov_clustering.
Related Issues (20)
- Network Graph from SciPy Hierarchical Clustering HOT 1
- Some nodes belong to more than one clusters. HOT 20
- markov_clustering not works with scipy 1.3.0 HOT 2
- What does the format of input data look like?
- ValueError: shape mismatch in assignment. HOT 3
- How to find a new sample belongs to which cluster?
- Shape mismatch in assignment
- conda-forge support HOT 3
- markov_clustering, possible error in instructions for computing of modularity Q HOT 3
- Hyperparameter Tunning
- markov_cluster.modularity errors when 1st arg is an np.ndarray
- module 'markov_clustering' has no attribute 'draw_graph' HOT 1
- RuntimeError: nnz of the result is too large
- How should I cite this package?
- Draw edge Labels
- Draw multiple graphs on different figures without closing the first ones
- Error when using inflation argument with a value different than pre-defined HOT 1
- Overlapping clusters HOT 1
- no matches found: markov_clustering[drawing]
- Two issues: "nx.to_scipy_sparse_matrix" not exist and the inflation hyperparameter not working?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from markov_clustering.