Debian Codegraph @

docs_sphinx/introduction/support.rst

raw
1 Support
2 =======
3
4 If you are stuck with a problem using Brian, please do get in touch at our
5 `community forum <http://brian.discourse.group>`__.
6
7 You can save time by following this procedure when reporting a problem:
8
9 1. Do try to solve the problem on your own first. Read the documentation,
10 including using the search feature, index and reference documentation.
11 2. Search the mailing list archives to see if someone else already had the
12 same problem.
13 3. Before writing, try to create a minimal example that reproduces the
14 problem. You’ll get the fastest response if you can send just a handful
15 of lines of code that show what isn’t working.
16
17 .. _which_version:
18
19 Which version of Brian am I using?
20 ----------------------------------
21 When reporting problems, it is important to include the information what exact version
22 of Brian you are using. The different install methods listed in :doc:`install` provide
23 different mechanisms to get this information. For example, if you used ``conda`` for
24 installing Brian, you can use ``conda list brian2``; if you used ``pip``, you can use
25 ``pip show brian2``.
26
27 A general method that works independent of the installation method is to ask the Brian
28 package itself:
29
30 .. code-block:: pycon
31
32 >>> import brian2
33 >>> print(brian2.__version__) # doctest: +SKIP
34 2.4.2
35
36 This method also has the advantage that you can easily call it from the same environment
37 (e.g. an IDE or a Jupyter Notebook) that you use when you execute Brian scripts. This
38 helps avoiding mistakes where you think you use a specific version but in fact you use a
39 different one. In such cases, it can also be helpful to look at Brian's ``__file__``
40 attribute:
41
42 .. code-block:: pycon
43
44 >>> print(brian2.__file__) # doctest: +SKIP
45 /home/marcel/anaconda3/envs/brian2_test/lib/python3.9/site-packages/brian2/__init__.py
46
47 In the above example, it shows that the ``brian2`` installation in the conda environment
48 ``brian2_test`` is used.
49
50 If you installed a :ref:`development version <development_install>` of Brian, then the
51 version number will contain additional information:
52
53 .. code-block:: pycon
54
55 >>> print(brian2.__version__) # doctest: +SKIP
56 2.4.2.post408
57
58 The above means that the Brian version that is used has 408 additional commits that were
59 added after the 2.4.2 release.