-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
jsonschema.SchemaError when a figure is validated #692
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
cc @chriddyp |
yikes, I suspect that this was introduced with adding the Nteract plugin. @theengineear @rgbkrk , does that sound right? Any thoughts on how to get around this issue? |
Upgrade |
include nbformat in `install_requires` as dependency to fix #692
I've updated nbformat (to 4.2.0) and am still seeing this issue. I had not seen it until I upgraded to plotly 2.x (I have tried 2.0.1 and 2.0.2). |
One thing to note - nbformat has to be upgraded for the Python your notebook server is running with (and server restarted). /cc @minrk |
I'm running this locally on my mac, and am still seeing the issue after updating nbformat. Any ideas? |
@malindho You should update to nbformat 4.3.0 |
For some reason conda update nbformat was not enough for me in my conda installation. However pip did the trick. |
Hi I updated nbformat to 4.3.0 and it still raises the same "validation failed" issue... |
|
@chriddyp I'm still seeing this issue, even with up-to-date packages and a clean installation. Steps to reproduce with conda:
Output of
Update 2018-02-14: |
Although this is from many years ago, I am having the same issue here. Maybe it is a problem when using MacOS, as it is my case as well. |
I have the same problem. nbformat==5.0.4 |
+1 |
Here is a minimal example that reproduces the bug: http://nbviewer.jupyter.org/gist/empet/cf922d7c7f4269d6f63432ec67a5d020
The notebook runs OK (with plotly 2.0.1) when I call
plot(fig)
.iplot(fig)
generates the plot too, but an error box pops up whenever Jupyter tries to save the notebook. The box has the following content:The save operation succeeded, but the notebook does not appear to be valid. The validation error was:
Notebook Validation failed:
u'data': [{u'colorscale': u'Viridis', u'z': [[2, 27, 105, 100], [87, 14, 121, 102], [26, 121, 73, 34], [44, 105, 111, 127]], u'type': u'heatmap', u'zsmooth': u'best'}], u'layout': {u'width': 400, u'height': 400}}
is not valid under any of the given schemas:{ "data": [ { "colorscale": "Viridis", "z": [ [ 2, 27, 105, 100 ], [ 87, 14, 121, 102 ], [ 26, 121, 73, 34 ], [ 44, 105, 111, 127 ] ], "type": "heatmap", "zsmooth": "best" } ], "layout": { "width": 400, "height": 400 } }
Initially I formulated this issue only for heatmaps, but meanwhile I realized that this behaviour manifests for any type of plot.
The text was updated successfully, but these errors were encountered: