Example usage

To use yi_package in a project:

import yi_package

print(yi_package.__version__)
Matplotlib is building the font cache; this may take a moment.
---------------------------------------------------------------------------
KeyboardInterrupt                         Traceback (most recent call last)
Cell In[1], line 1
----> 1 import yi_package
      3 print(yi_package.__version__)

File ~/checkouts/readthedocs.org/user_builds/yi-package-columbia/envs/latest/lib/python3.9/site-packages/yi_package.py:37
     35 from nltk.probability import FreqDist
     36 import matplotlib
---> 37 import matplotlib.pyplot as plt
     38 import seaborn as sns
     39 # For importing our word cloud mask image and converting the content into bytes for the Image package

File ~/checkouts/readthedocs.org/user_builds/yi-package-columbia/envs/latest/lib/python3.9/site-packages/matplotlib/pyplot.py:52
     50 from cycler import cycler
     51 import matplotlib
---> 52 import matplotlib.colorbar
     53 import matplotlib.image
     54 from matplotlib import _api

File ~/checkouts/readthedocs.org/user_builds/yi-package-columbia/envs/latest/lib/python3.9/site-packages/matplotlib/colorbar.py:19
     16 import numpy as np
     18 import matplotlib as mpl
---> 19 from matplotlib import _api, cbook, collections, cm, colors, contour, ticker
     20 import matplotlib.artist as martist
     21 import matplotlib.patches as mpatches

File ~/checkouts/readthedocs.org/user_builds/yi-package-columbia/envs/latest/lib/python3.9/site-packages/matplotlib/contour.py:13
     11 import matplotlib as mpl
     12 from matplotlib import _api, _docstring
---> 13 from matplotlib.backend_bases import MouseButton
     14 import matplotlib.path as mpath
     15 import matplotlib.ticker as ticker

File ~/checkouts/readthedocs.org/user_builds/yi-package-columbia/envs/latest/lib/python3.9/site-packages/matplotlib/backend_bases.py:45
     42 import numpy as np
     44 import matplotlib as mpl
---> 45 from matplotlib import (
     46     _api, backend_tools as tools, cbook, colors, _docstring, textpath,
     47     _tight_bbox, transforms, widgets, get_backend, is_interactive, rcParams)
     48 from matplotlib._pylab_helpers import Gcf
     49 from matplotlib.backend_managers import ToolManager

File ~/checkouts/readthedocs.org/user_builds/yi-package-columbia/envs/latest/lib/python3.9/site-packages/matplotlib/textpath.py:8
      5 import numpy as np
      7 from matplotlib import _api, _text_helpers, dviread
----> 8 from matplotlib.font_manager import (
      9     FontProperties, get_font, fontManager as _fontManager
     10 )
     11 from matplotlib.ft2font import LOAD_NO_HINTING, LOAD_TARGET_LIGHT
     12 from matplotlib.mathtext import MathTextParser

File ~/checkouts/readthedocs.org/user_builds/yi-package-columbia/envs/latest/lib/python3.9/site-packages/matplotlib/font_manager.py:1637
   1633     _log.info("generated new fontManager")
   1634     return fm
-> 1637 fontManager = _load_fontmanager()
   1638 findfont = fontManager.findfont
   1639 get_font_names = fontManager.get_font_names

File ~/checkouts/readthedocs.org/user_builds/yi-package-columbia/envs/latest/lib/python3.9/site-packages/matplotlib/font_manager.py:1631, in _load_fontmanager(try_read_cache)
   1629             _log.debug("Using fontManager instance from %s", fm_path)
   1630             return fm
-> 1631 fm = FontManager()
   1632 json_dump(fm, fm_path)
   1633 _log.info("generated new fontManager")

File ~/checkouts/readthedocs.org/user_builds/yi-package-columbia/envs/latest/lib/python3.9/site-packages/matplotlib/font_manager.py:1105, in FontManager.__init__(self, size, weight)
   1102 for path in [*findSystemFonts(paths, fontext=fontext),
   1103              *findSystemFonts(fontext=fontext)]:
   1104     try:
-> 1105         self.addfont(path)
   1106     except OSError as exc:
   1107         _log.info("Failed to open font file %s: %s", path, exc)

File ~/checkouts/readthedocs.org/user_builds/yi-package-columbia/envs/latest/lib/python3.9/site-packages/matplotlib/font_manager.py:1132, in FontManager.addfont(self, path)
   1130     self.afmlist.append(prop)
   1131 else:
-> 1132     font = ft2font.FT2Font(path)
   1133     prop = ttfFontProperty(font)
   1134     self.ttflist.append(prop)

KeyboardInterrupt: