- Notifications
You must be signed in to change notification settings - Fork 262
Configuration Instance + Visual Style Tutorials #485
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
Conversation
| There are a number of functions that display a progress bar, these are all functions that have I'm not sure if it will immediately show a progress bar when setting @ntamas we probably want to make available progress bars more generally? There are also some packages that provide progress bar functionality (e.g. |
| The So, in if config["verbose"]: if shell.supports_progress_bar(): set_progress_handler(shell.get_progress_handler()) if shell.supports_status_messages(): set_status_handler(shell.get_status_handler())This is what turns on the progress bars, but note that it looks at the configuration parameter only at startup, so if you set @vtraag I'm not sure what you mean; do we want to add a function that the user can invoke in the shell to switch the progress bar to use |
Many people will probably use Jupyter notebooks for their analysis, which are now not properly supported with any progressbar, I believe. Instead of having to code up something ourselves, simply supporting |
b0a3813 to 38978c2 Compare When running as a library, which is what the example intends to show, general.verbose does nothing.
| I've made the changes, and rebased. I've also removed |
| @vtraag Ah, okay, I understand now. I believe this should be discussed in a separate issue. I didn't know that Furthermore, it seems like there are multiple Jupyter-like environments now; besides the stock Jupyter notebook, there's also a VS Code extension that lets you use Jupyter notebooks inside VS Code, plus there's Google Colab, and maybe others. It would be great if we could pick a solution that works in as many platforms as possible. |
| Alright, the progress bar discussion is interesting but not really the topic of this PR. I'll open a separate issue and refer here. I've simplified some wording, I'll merge now. |

As suggested by @iosonofabio, I've added a tutorial for using igraph's configuration instance in order to set default plotting techniques, as well as a tutorial for using dictionary unpacking in order to set the same visual style across multiple graphs. I believe these two tutorials complement each other nicely.
I do have one question though: For the configuration instance, I've currently set
config["general.verbose"] = Truesince I wanted to show off something other than just the plotting settings. The documentation states that this will cause some functions to print progress bars or other extra output. Is there an example of a function I could use to demonstrate this difference?