diff --git a/docs/gallery/general/extensions.py b/docs/gallery/general/extensions.py index 5140c531b..66645a660 100644 --- a/docs/gallery/general/extensions.py +++ b/docs/gallery/general/extensions.py @@ -248,16 +248,11 @@ def __init__(self, **kwargs): # .. note:: # # For more information on writing NWB files, see :ref:`basic_writing`. - -#################### -# By default, PyNWB does not use the namespaces cached in a file--you must -# explicitly specify this. This behavior is enabled by the *load_namespaces* -# argument to the :py:class:`~pynwb.NWBHDF5IO` constructor. - -with NWBHDF5IO("cache_spec_example.nwb", mode="r") as io: - nwbfile = io.read() - -#################### +# +# By default, if a namespace is not already loaded, PyNWB loads the namespace cached in +# the file. To disable this, set ``load_namespaces=False`` in the +# :py:class:`~pynwb.NWBHDF5IO` constructor. +# # .. _MultiContainerInterface: # # Creating and using a custom MultiContainerInterface