These are chat archives for ipython/ipython

11th
Feb 2017
fterbo
@fterbo
Feb 11 2017 05:08
is there some way to configure the colors used for syntax highlighting?
or disable it...
%colors NoColor used to work, but doesn't seem to any more
fterbo
@fterbo
Feb 11 2017 06:03
seriously why the %*$( is there InteractiveShell.colors distinct from TerminalInteractiveShell.highlighting_style (in that why is nocolor for the former COMPLETELY IGNORED for the latter)
this configuration syntax is insane
and why do the docs assume I know what "pygments" is
Chris von Csefalvay
@chrisvoncsefalvay
Feb 11 2017 18:27
Well, pygments is pretty ubiquitous when it comes to Python...
I do agree w you about the config syntax, though, @fterbo! :)
fterbo
@fterbo
Feb 11 2017 20:03
well my frustration is why do we assume everyone is using python.. :)
I still haven't figured out how to disable syntax highlighting, if anyone knows how to do that
Chris von Csefalvay
@chrisvoncsefalvay
Feb 11 2017 20:38
:D where do you want to disable highlighting?
fterbo
@fterbo
Feb 11 2017 21:02
in the web UI, mostly everywhere
or have some easier way to set the colors
but a minimal solution for some of our color blind students would be to just disable it
Chris von Csefalvay
@chrisvoncsefalvay
Feb 11 2017 21:04
being colourblind myself, I don’t see what advantage I would get from it.
(genuine question, not trolling)
fterbo
@fterbo
Feb 11 2017 21:04
get from disabling highlighting?
Chris von Csefalvay
@chrisvoncsefalvay
Feb 11 2017 21:04
yeah
fterbo
@fterbo
Feb 11 2017 21:05
I mean some particular people lose colors to the white background due to lack of contrast
Chris von Csefalvay
@chrisvoncsefalvay
Feb 11 2017 21:05
Ah. Hmmm. Do they?
fterbo
@fterbo
Feb 11 2017 21:05
(if you're sortof "typical" red/green colorblind this doesn't happen, but there are lots of variations)
Chris von Csefalvay
@chrisvoncsefalvay
Feb 11 2017 21:06
I’ve just asked my wife to look at IPython’s scheme over a colourblind simulator… we went through deuteranopia (which is what I have), tritanopia, protanopia and the anomalies and stuff still looked pretty ok. Admittedly simulations != reality.
fterbo
@fterbo
Feb 11 2017 21:06
also when we take screenshots or produce reference notebooks with results in them, we'd like to produce them without color just so there's no particular advantage to anyone (particularly with results where say negative values are in red, and they look the same as positive values in black to some people)
which means people who don't see red as black are getting somewhat of an advantage of an extra display hint for some things
Chris von Csefalvay
@chrisvoncsefalvay
Feb 11 2017 21:07
Hm. OK, I see that point...
fterbo
@fterbo
Feb 11 2017 21:07
we do this in images by providing both colors and badge icons, charts with different point markers, etc.
I mean, mostly what you would do if you were printing things before color printers anyhow.. :-)
Chris von Csefalvay
@chrisvoncsefalvay
Feb 11 2017 21:08
Yeah, that makes a lot more sense. Never thought about most of this, to be honest - despite being sort of personally affected ;)
fterbo
@fterbo
Feb 11 2017 21:09
yeah, I can see that
I mean we all only see one way (with the notable exception of the few people who develop color blindness later)
so even a "limited" way is still normal, and not really problematic
it's a more interesting question when you are trying to evaluate "fairness" or "advantage" in teaching or learning
I'm a little less concerned about advantage than real disadvantage - like when the color is telling you something important, and you don't have another way to see it
Chris von Csefalvay
@chrisvoncsefalvay
Feb 11 2017 21:13
Yah, bane of my geography classes :D
fterbo
@fterbo
Feb 11 2017 21:14
heh, yeah
this doesn't come up a LOT in notebooks, but it comes up enough that I'd like to have some way to resolve it
obviously we can control the images and charts we put in them, so that's not so much of a problem
Chris von Csefalvay
@chrisvoncsefalvay
Feb 11 2017 21:14
@fterbo are you teaching somewhere?
fterbo
@fterbo
Feb 11 2017 21:15
I'm a research professor, so I don't teach, but I help develop classroom materials.. :-)
Chris von Csefalvay
@chrisvoncsefalvay
Feb 11 2017 21:15
Cool! It is an interesting perspective indeed :)
fterbo
@fterbo
Feb 11 2017 21:15
plus part of our research is in how to teach certain technical topics, and how people learn
Chris von Csefalvay
@chrisvoncsefalvay
Feb 11 2017 21:16
That’s very meta. :D
fterbo
@fterbo
Feb 11 2017 21:16
but also useful.. :-)
it's sortof hard, it also means you know that later you're going to figure out that you taught people more poorly in the past
it's not truly human subject research (since you're not teaching two groups differently at the same time), but you don't have a time machine, so you still can't fix the past with what you learn in the future
(always true in all science, but somehow seems worse)
many universities have guidelines for color blindness, but not all, and it's unfortunately not ADA protected in any way
but it's actually quite common
I mean for workplace stuff it really isn't that important, but when you're teaching...it is, or at least is much more
Chris von Csefalvay
@chrisvoncsefalvay
Feb 11 2017 21:20
That is really interesting. :) In the UK, it was a protected attribute…
fterbo
@fterbo
Feb 11 2017 21:21
I might poke around making a jupyter extension that allows people to set the colors...
I mean it seems that we can make a new set of colors easier than disabling them.. :-)
but I wouldn't ask individual students to write a pygments color set.. :-)
but if there were a tab in the web UI, that would probably be ok
then we could also just let you flip through the existing ones too
I am not a js person, but this might be a good project to learn some basics on.. :-)