Skip to content

Commit a695f09

Browse files
authored
Merge pull request igraph#843 from igraph/docs/do-not-save-config-in-gallery
2 parents f1d7932 + e6516e9 commit a695f09

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

doc/examples_sphinx-gallery/configuration.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@
1818
ig.config["plotting.palette"] = "rainbow"
1919

2020
# %%
21-
# Then, we save them. By default, ``ig.config.save()`` will save files to
22-
# ``~/.igraphrc`` on Linux and Max OS X systems, or in
23-
# ``%USERPROFILE%\.igraphrc`` for Windows systems:
24-
ig.config.save()
21+
# The updated configuration affects only the current session. Optionally, it
22+
# can be saved using ``ig.config.save()``. By default, this function writes the
23+
# configuration to ``~/.igraphrc`` on Linux and Max OS X systems, and in
24+
# ``%USERPROFILE%\.igraphrc`` on Windows systems.
2525

2626
# %%
27-
# The code above only needs to be run once (to store the new config options
28-
# into the ``.igraphrc`` file). Whenever you use igraph and this file exists,
29-
# igraph will read its content and use those options as defaults. For
30-
# example, let's create and plot a new graph to demonstrate:
27+
# The configuration only needs to be saved to `.igraphrc` once, and it will
28+
# be automatically used in all future sessions. Whenever you use igraph and
29+
# this file exists, igraph will read its content and use those options as
30+
# defaults. For example, let's create and plot a new graph to demonstrate:
3131
random.seed(1)
3232
g = ig.Graph.Barabasi(n=100, m=1)
3333

0 commit comments

Comments
 (0)