Uploaded image for project: 'Zeppelin'
  1. Zeppelin
  2. ZEPPELIN-3449

'PyZeppelinContext' object has no attribute 'configure_mpl'

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Not A Problem
    • 0.8.0
    • None
    • Interpreters
    • None

    Description

      The example below (from one of default notebook - Zeppelin Tutorial/Matplotlib (Python • PySpark))

      %python
      z.configure_mpl(width=400, height=300, fmt='svg')
      plt.plot([1, 2, 3])

      fails with this exception

      AttributeErrorTraceback (most recent call last)
      <ipython-input-4-503d602b8174> in <module>()
      ----> 1 z.configure_mpl(width=400, height=300, fmt='svg')
      2 plt.plot([1, 2, 3])
      
      AttributeError: 'PyZeppelinContext' object has no attribute 'configure_mpl'

       

       

      Apart from the above this

      %python
      import matplotlib.pyplot as plt
      plt.plot([1, 2, 3])

      also fails to render the image and gives out this message

      /tmp/zeppelin_pyspark-7531534346725004203.py:179: UserWarning: Unable to load inline matplotlib backend, falling back to Agg warnings.warn("Unable to load inline matplotlib backend, " [<matplotlib.lines.Line2D object at 0x307df90>]

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            prabhjyotsingh Prabhjyot Singh
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: