microsoft / jupyter-Kqlmagic

Extension (Magic) to Jupyter notebook and Jupyter lab, that enable notebook experience working with Kusto, ApplicationInsights, and LogAnalytics data.
Other
85 stars 31 forks source link

Kqlmagic logs "ERROR:root:argument of type 'NoneType' is not iterable" when setting one of these options.... #92

Open David-Noble-at-work opened 2 years ago

David-Noble-at-work commented 2 years ago

The offending option is Kqlmagic.plotly_config which produces this warning message:

ERROR:root:argument of type 'NoneType' is not iterable

Here are all the options I set in my notebook:

%config Kqlmagic.plotly_layout = {'autosize': True, 'template': 'plotly_dark', 'height': 900, 'yaxis': {'rangemode': 'nonnegative'}}
%config Kqlmagic.plotly_config = {'displaylogo': False}
%config Kqlmagic.enable_curly_brackets_params = False
%config Kqlmagic.enable_suppress_result = True
%config Kqlmagic.json_display = 'formatted'
%config Kqlmagic.schema_json_display = 'formatted'
%config Kqlmagic.show_query = False
%config Kqlmagic.table_package = 'pandas'

The warning message originates in the call to IPython traitlets.config.configurable._load_config at line 200 in the version install on my virtualenv. The warning occurs the first time down this code path.

David-Noble-at-work commented 2 years ago

Are you guys actively looking at issues? I'm Microsoft and available for a remote debugging session on macOS, if you would like. It seems to me you've let some Window-isms creep in. You also don't work very well with JetBrains. I'm here to help, if you'd like.

David-Noble-at-work commented 2 years ago

@mbnshtck Any updates? Need any help on this?