METADATA 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. Metadata-Version: 2.1
  2. Name: matplotlib-inline
  3. Version: 0.1.7
  4. Summary: Inline Matplotlib backend for Jupyter
  5. Author-email: IPython Development Team <ipython-dev@python.org>
  6. License: BSD 3-Clause License
  7. Copyright (c) 2019-2022, IPython Development Team.
  8. All rights reserved.
  9. Redistribution and use in source and binary forms, with or without
  10. modification, are permitted provided that the following conditions are met:
  11. 1. Redistributions of source code must retain the above copyright notice, this
  12. list of conditions and the following disclaimer.
  13. 2. Redistributions in binary form must reproduce the above copyright notice,
  14. this list of conditions and the following disclaimer in the documentation
  15. and/or other materials provided with the distribution.
  16. 3. Neither the name of the copyright holder nor the names of its
  17. contributors may be used to endorse or promote products derived from
  18. this software without specific prior written permission.
  19. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  20. AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  21. IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  22. DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
  23. FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  24. DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  25. SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  26. CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  27. OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  29. Project-URL: Homepage, https://github.com/ipython/matplotlib-inline
  30. Keywords: ipython,jupyter,matplotlib,python
  31. Classifier: Development Status :: 5 - Production/Stable
  32. Classifier: Framework :: IPython
  33. Classifier: Framework :: Jupyter
  34. Classifier: Framework :: Jupyter :: JupyterLab
  35. Classifier: Framework :: Jupyter :: JupyterLab :: 3
  36. Classifier: Framework :: Jupyter :: JupyterLab :: 4
  37. Classifier: Intended Audience :: Developers
  38. Classifier: Intended Audience :: Science/Research
  39. Classifier: License :: OSI Approved :: BSD License
  40. Classifier: Programming Language :: Python
  41. Classifier: Programming Language :: Python :: 3
  42. Classifier: Programming Language :: Python :: 3.8
  43. Classifier: Programming Language :: Python :: 3.9
  44. Classifier: Programming Language :: Python :: 3.10
  45. Classifier: Programming Language :: Python :: 3.11
  46. Classifier: Programming Language :: Python :: 3.12
  47. Classifier: Topic :: Multimedia :: Graphics
  48. Requires-Python: >=3.8
  49. Description-Content-Type: text/markdown
  50. License-File: LICENSE
  51. Requires-Dist: traitlets
  52. # Matplotlib Inline Back-end for IPython and Jupyter
  53. This package provides support for matplotlib to display figures directly inline in the Jupyter notebook and related clients, as shown below.
  54. ## Installation
  55. With conda:
  56. ```bash
  57. conda install -c conda-forge matplotlib-inline
  58. ```
  59. With pip:
  60. ```bash
  61. pip install matplotlib-inline
  62. ```
  63. ## Usage
  64. Note that in current versions of JupyterLab and Jupyter Notebook, the explicit use of the `%matplotlib inline` directive is not needed anymore, though other third-party clients may still require it.
  65. This will produce a figure immediately below:
  66. ```python
  67. %matplotlib inline
  68. import matplotlib.pyplot as plt
  69. import numpy as np
  70. x = np.linspace(0, 3*np.pi, 500)
  71. plt.plot(x, np.sin(x**2))
  72. plt.title('A simple chirp');
  73. ```
  74. ## License
  75. Licensed under the terms of the BSD 3-Clause License, by the IPython Development Team (see `LICENSE` file).