我正试着在自定义.js. 我把所有的负货币都换成红色。在
我希望它适用于所有打印在Jupyter上的pandas数据帧。添加到所有自定义.js在jupyter/anaconda文件夹中可用,它仍然没有改变任何东西。有人能帮我吗?在
var allTableCells = document.getElementsByTagName("td");
for(var i = 0, max = allTableCells.length; i < max; i++) {
var node = allTableCells[i];
//get the text from the first child node - which should be a text node
var currentText = node.childNodes[0].nodeValue;
//check for 'one' and assign this table cell's background color accordingly
if (currentText.includes("$ -"))
node.style.color = "red";
}
use the jupyter javascript magic
相关问题 更多 >
编程相关推荐