GithubHelp home page GithubHelp logo

merqurio / jupyter_themes Goto Github PK

View Code? Open in Web Editor NEW
163.0 4.0 27.0 93 KB

A plugin to select syntax highlighting on Jupyter

License: MIT License

JavaScript 100.00%
theme jupyter notebook syntax-highlighting font jupyter-themes

jupyter_themes's People

Contributors

dlukes avatar merqurio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

jupyter_themes's Issues

Trouble activating extension

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.)

jupyter

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!

config not defined

This happens when lot's of JS is loaded in the notebook and the plugin runs first.
screen shot 2016-04-15 at 12 01 17

Command line instructions for OS

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

No themes in "Cell" menu

I must have missed a step somewhere.
I have the theme plugin in my nbextensions directory:
jupyter_themes
still I can't see the themes in my "Cell" menu:
jupyter_cell_menu

ink.href = Jupyter.notebook.base_url + require.toUrl(themes[theme]); NOT WORKING?

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!

Better not to assume base URL

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 :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.