Skip to content
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

dark theme: cython annotation invisible #5909

Open
RalphFS opened this issue Jan 25, 2019 · 1 comment
Open

dark theme: cython annotation invisible #5909

RalphFS opened this issue Jan 25, 2019 · 1 comment
Milestone

Comments

@RalphFS
Copy link

RalphFS commented Jan 25, 2019

The output of cython's annotation function is invisible if dark theme is activated.

sample code for reproduction:

%load_ext cython
%%cython -a
import cython
@cython.boundscheck(False)
@cython.wraparound(False)
def dark_theme_sum(double [:] x):
    cdef:
        Py_ssize_t i = 0
        int l = x.shape[0]
        double out = 0
    for i in range(l):
        out += x[i]
    return out

cython_dt

@vidartf
Copy link
Member

vidartf commented Jan 28, 2019

Here, cython is making assumptions about the base styling of its HTML output that are incorrect. As far as I can see, cython has two options:

  • Set the assumed styles (black base font) explicitly.
  • Try to use the theme variables (if available) of lab (or the dark/light helper).

Not sure about the complexity of the second option, but at least the first option should be a good quick-fix.

@saulshanabrook saulshanabrook added this to the Reference milestone Jan 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants