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.

alt.Text(' ') not allowed anymore?

See original GitHub issue

The Tutorial `10-HeatMaps.ipynb’ contains as last example a call where the cell text is replaced by an empty string.

This errors on Python 3.6 with GH master of altair using JupyterLab/GitHub proxy extension:

alt.Chart(cars).mark_text(applyColorToBackground=True).encode(
    alt.Row('Origin:O'),
    alt.Column('Cylinders:O'),
    alt.Color('mean(Miles_per_Gallon):Q', sort='descending', scale=alt.Scale(range=['pink', 'red'])),
    alt.Text(' '),
)
FieldError: Fields/columns not found in the data: {' '}

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
jakevdpcommented, Nov 16, 2017

The problem is that most errors that come up will not be python errors, but javascript rendering errors. Our introduction of FieldError in the most recent release was an attempt to move some of the (silent) javascript errors into more noticeable python-side errors; given all the problems it’s caused I think we should probably revert that change. But that will move these types of errors back to the javascript side, so CI tests won’t catch them.

0reactions
jakevdpcommented, Mar 27, 2018

This is obsolete now that we’ve moved to v2.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

There is no character limit for “alt text”: Myth Debunked!
Some people might say that alternative text for images has a 125 character limit. That's not correct.
Read more >
Alt text no more than 100 characters
The text alternative for an image must be no more than 100 characters in length. A text alternative should summarize the purpose of...
Read more >
Why an HTML image alt text doesn't show on hover
Reasons why an HTML image alt text does not show when hovering in Firefox, Chrome and does show in Internet Explorer with examples....
Read more >
The Rules of ALT » - HTML
The alt attribute is used to assign a text alternative to an img . The alternative text is used anytime the image is...
Read more >
When is it acceptable to leave the alt text empty on an HTML ...
If there is even the slightest possibility of the author having the ability to provide real alternative text, then it would not be...
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