Skip to content

Commit 1404074

Browse files
Merge pull request #2729 from jeromtom/Issue#2728-Update-the-docstring-of-install_jax
Fix the API docs of install_jax
2 parents b2f8b62 + fbb7b80 commit 1404074

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

docs/source/api/util.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ Utility functions
2222

2323
.. autofunction:: pybamm.get_parameters_filepath
2424

25+
.. autofunction:: pybamm.install_jax
26+
2527
.. autofunction:: pybamm.have_jax
2628

2729
.. autofunction:: pybamm.is_jax_compatible

pybamm/util.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -336,13 +336,13 @@ def install_jax(arguments=None): # pragma: no cover
336336
"""
337337
Install compatible versions of jax, jaxlib.
338338
339-
Command Line Interface:
340-
-----------------------
341-
>>> pybamm_install_jax
339+
Command Line Interface::
342340
343-
optional arguments:
344-
-h, --help show help message
345-
-f, --force force install compatible versions of jax and jaxlib
341+
$ pybamm_install_jax
342+
343+
| optional arguments:
344+
| -h, --help show help message
345+
| -f, --force force install compatible versions of jax and jaxlib
346346
"""
347347
parser = argparse.ArgumentParser(description="Install jax and jaxlib")
348348
parser.add_argument(

0 commit comments

Comments
 (0)