merqurio / jupyter_themes Goto Github PK
View Code? Open in Web Editor NEWA plugin to select syntax highlighting on Jupyter
License: MIT License
A plugin to select syntax highlighting on Jupyter
License: MIT License
Hi, thanks for writing this script. I've downloaded the .js file and enabled it, but nothing has changed in Jupyter. (I'm using the jupyter_nbextensions_configurator.)
There are two theme selectors (theme_selector.js and jupyter_themes/theme_selector.js) and both say that there is no YAML file that tells Jupyter how to configure it. I've closed and reopened Jupyter multiple times, and tried just theme_selector.js, just jupyter_themes/theme_selector.js, etc. and no change. Any advice would be really appreciated. I'm using Windows 10, if that matters.
Thanks!
Howdy. Trying to install on Mac.
Got past wget issues by using
"curl -O https://raw.githubusercontent.com/merqurio/jupyter_themes/master/theme_selector.js" instead.
However, the last step in command line instructions gives an error...
Enabling notebook extension jupyter_themes/theme_selector...
- Validating: problems found:
- require? X jupyter_themes/theme_selector
Any suggestions as to what to try next? Thanks
I appreciate your tool which is indeed helpful.
I would like to ask you for support of jupyter lab.
thank you.
I did apply this temporary fix:
function load_css(theme) {
// Create a link element to attach the styles
var link = document.createElement("link");
link.type = "text/css";
link.rel = "stylesheet";
//link.href = Jupyter.notebook.base_url + require.toUrl(themes[theme]);
link.href = window.location.origin + require.toUrl(themes[theme]);
link.id = theme + "-css";
document.getElementsByTagName("head")[0].appendChild(link);
}
Thanks!
If you are in a notebook, you open a second one, and you change the theme on the second one, the first one you opened gives an error when you change the theme on the first one.
The way this worked, doesn't work in the latest version ๐ข
Hi,
Is it possible to add theme support to file editor ?
Hi, first of all, thanks for a really useful extension! :) And one small remark: when loading assets, it's better not to assume that the base URL is /
. In my case for instance, I'm running a JupyterHub server which spawns notebooks for individual users, so the base URLs are /user/<username>
.
Details in the following commit: dlukes@f2e498b
Let me know if you want me to start a PR :)
No syntax highlighting happens when changing themes. Only default theme has highlighting.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.