Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-7585

Ipython usage raises AttributeError

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: runner-direct, sdk-py-core
    • Labels:

      Description

      https://github.com/apache/beam/blob/master/sdks/python/apache_beam/runners/interactive/display/display_manager.py#L36

      import IPython

      _display_progress = IPython.display.display

       

      This doesn't work:

      In [1]: import IPython; IPython.display.display('test')
      ---------------------------------------------------------------------------
      AttributeError Traceback (most recent call last)
      <ipython-input-1-1ca36be5baf7> in <module>()
      ----> 1 import IPython; IPython.display.display('test')

      AttributeError: 'module' object has no attribute 'display'
      In [2]: from IPython import display; display.display('test')
      'test'
      In [3]: import IPython; IPython.display.display('test')
      'test'

       

       

      Should be:

      import IPython

      from IPython import display

      _display_progress = display.display

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Sithe SBlackwell
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified