question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NO viz when using headless renderer with JSON data transformer

See original GitHub issue

When using

alt.renderers.enable('png')  # or alt.renderers.enable('svg') 
alt.data_transformers.enable('json')

The viz is empty in the notebook in jupyterlab. Using default in either renderer or data_transformer behaves correct. Seems something wrong with the utils.headless (not sure)?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
pagpirescommented, Apr 30, 2018

Thanks, that will be great. Right now it can be done via setting an arbitrary number:

alt.data_transformers.register('no_limit', lambda data: alt.pipe(data, alt.limit_rows(max_rows=1000000), alt.to_values))
alt.data_transformers.enable('no_limit')
alt.renderers.enable('svg')

Just one more thing (not very related): the bottom of the guide in data transformers (https://altair-viz.github.io/user_guide/data_transformers.html) it not correct. I think it should be

alt.data_transformers.register('s3', lambda data: pipe(data, sample, to_s3('mybucket'))) # not pipe(sample, to_s3('mybucket'))
alt.data_transformers.enable('s3')
0reactions
jakevdpcommented, Apr 30, 2018

Oh, I see… that’s an issue.

As soon as #776 is merged you’ll be able to do

alt.data_transformers.enable('default', max_rows=None)

and it will work.

We should make the headless renderers use that automatically… the max rows error is intended for the live rendering use-case.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Data transformers — Altair 4.2.0 documentation
Data transformers . Before a Vega-Lite or Vega specification can be passed to a renderer, it typically has to be transformed in a...
Read more >
A Modern Library for 3D Data Processing - Open3D
Visualize 3D semantic segmentation and object detection with input data, ground truth, and predictions. In addition, any custom properties for a PointCloud , ......
Read more >
Mac OS — brainlit 0.0.0 documentation
Not exclusive to macOS but make sure aws .json file has no dollar signs in the strings and is being edited/saved within the...
Read more >
Add and configure components - ServiceNow Docs
Learn how to add components to your page in UI Builder. A page is built by adding components.
Read more >
Mastering - Kafka Streams and ksqlDB
never-ending streams of data—without which an event streaming ... data pipeline, apply data transformation logic using a rich set of stream ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found