plotly / jupyter-dash

OBSOLETE - Dash v2.11+ has Jupyter support built in!
https://dash.plotly.com/dash-in-jupyter
MIT License
955 stars 233 forks source link

preemptively import orjson #85

Closed alexcjohnson closed 2 years ago

alexcjohnson commented 2 years ago

Without this, in mode="jupyterlab" we see (sometimes) when the page index tries to load:

  AttributeError: partially initialized module 'orjson' has no attribute
  'OPT_SORT_KEYS' (most likely due to a circular import)

I don't like this, I feel like we're papering over a deeper problem that may still manifest in another way, but this is the best I can do now and we really need to make a release soon...

cc @T4rk1n