Change the Theme in Jupyter Notebook?

This is easy to do using the jupyter-themes package by Kyle Dunovan. You may be able to install it using conda. Otherwise, you will need to use pip. Install it with conda: or pip: You can get the list of available themes with: So change your theme with: To load a theme, finally, reload the page. The docs and … Read more

Convert categorical variables to numeric in R

You can use unclass() to display numeric values of factor variables : To do so on all categorical variables, you can use sapply() : EDIT : A5C1D2H2I1M1N2O1R2T1’s solution works in one step : It only works if your data.frame doesn’t contain any character variable though (otherwise, they’ll be put to NA).

Categories R

How to add a color overlay to a background image?

I see 2 easy options: multiple background with a translucent single gradient over image huge inset shadow gradient option: shadow option: an old codepen of mine with few examples a third option with background-blen-mode :The background-blend-mode CSS property sets how an element’s background images should blend with each other and with the element’s background color.

Find an element in DOM based on an attribute value

Update: In the past few years the landscape has changed drastically. You can now reliably use querySelector and querySelectorAll, see Wojtek’s answer for how to do this. There’s no need for a jQuery dependency now. If you’re using jQuery, great…if you’re not, you need not rely it on just for selecting elements by attributes anymore. There’s not a very short way … Read more

Node.js Error: connect ECONNREFUSED

Chances are you are struggling with the node.js dying whenever the server you are calling refuses to connect. Try this: This keeps your server running and also give you a place to attach the debugger and look for a deeper problem.