I have recently installed themes for Notebook from here
How can I customize these themes?
For example, while using "monokai" theme, I want to change the background of the notebook to pure Black.
Correct me if I am wrong but I dont think you can change the background via the commands provided via the theme github.
You will have to look for the jupyterthemes/styles/monokai.less file on your computer and change it manually. I am assuming its the following variable that needs to be change.
#notebook-bg
Hope it helps!
To find the jupyterthemes directory, you can open an IPython console and enter the following commands:
In [1]: import jupyterthemes
In [2]: print(jupyterthemes.__file__)
From there you should be able to find and modify the stylesheet (see M. Glombek's answer).
Related
Initially, I used Atom for editing my python files. I love the color scheme that IDE. I have moved on to pyCharm now. I want to set it manually to use the same color scheme as that of Atom's.
Could you tell me where I can find the default color schema data in Atom?
What you're seeing is the atom-dark-syntax theme. The color schemes are written in less and is available on GitHub.
If you want find the color schemes of any of your installed themes, follow these steps:
Go to Settings > Themes
Click the theme to visit its page on atom.io.
Click Repo.
For uninstalled themes, just go to atom.io/themes, search for a theme and click Repo.
The Dracula theme for Zsh makes it seem by following the instructions there you'll not only get the prompt but the colors as well. Am i missing something?
This is what i got.
This is what it should look like.
Any help will be apprecited!
Not sure if this is the proper way—as I would think the dracula.zsh-theme file located in Users/your_root_folder/.oh-my-zsh/themes/dracula.zsh-theme would've included colors for the theme...
That being said I went to the terminal version of the dracula theme and just downloaded it and installed (e.g. Preferences/profiles/settings(gear-icon)/import it, then set it as the default. And wa-la (or blah-blah) it worked!
I have a package which uses sass files for Unity DE theme. It's a GTK theme and I want to change the colour of the theme. The owner says I will have to edit a sass file. And also warns not to edit them directly ? Am I correct to understand that first I have to convert it to CSS, edit it and then convert back to sass ? Kindly guide me. Thanks.
Nope. There is no need to convert sass to css and edit it and convert it back.
Sass is a text file, so you can edit it with any text editor like gedit, emacs, nano , sublime text or etc.
I have no idea your framework want to do with that sass file, but i think there is no need to convert it to css manually.
If you have no idea about how sass structure it is you can view this.
Is it possible to define some template content cells which all new ipython notebooks include when being created?
I'd like my notebooks to include some standard CSS using this method and possibly also have a markdown cell with links I'm frequently using .
Thanks to #Jakob for the help.
To get permanent customised CSS within the notebooks, I needed to create <myprofile>/static/custom/custom.css in my .ipython user folder folder.
This worked quite ok. I used the firefox's webdev tools to find the css items and classes in the ipython notebook and managed to get a monokai-ish style:
I also learned from here that you can inject javascript which might make it possible to add default content to new notebooks. I haven't tried this one yet though.
Edit: if interested, the css file lives here. The monokai colors are based on .cm-s-ipython, which I think is similar what sublime text is using.
I recently setup django-grappelli on my first django app. While I like the way it looks I want to customize the colors, and other CSS.
From my research, it looks like I will have to use Compass but I've never used Compass before and want to double check that this is the best method before I embark on that path!
Is Django-grapelli even the right choice for some one that wants to customize the color theme?
Things I tried
Modify the CSS in the Grappelli stylesheets but they are formatted in a way that makes it tedious.
Extend the style sheet but I am not sure where to do this for the admin.
Create a custom.css but could not figure out where to put the path
Thanks for your advice!
It seems to me like Compass is just a tool to write CSS. I've never used it, but at the moment I don't see how it could make modding the admin interface any easier than doing it manually!
Whenever I make changes to the admin (I've made changes to Grappelli, like you're trying to do), I always use what you've listed as number 2. I've never had any troubles! I can try to help you out, if you'd like to try again.
What I do first is go to my Python install directory and copy the Grappelli source from Lib/site-packages. I put this code in my project directory as a project-level app. So, if you're using Django 1.4, you'll have a folder that has your project folder as well as manage.py in it. Put the code there.
Then, using your favorite web developer tools (I prefer Chrome's), figure out which stylesheet you need to modify and which css file it's in. I do this by right-clicking the element and selecting Inspect Element. This brings up the dev tools, and at the right it tells you the css file its referenced from as well as which line its on. If you open up that css file in your favorite text editor and make changes to it, it should work!
Let me know if you're having any trouble with this. I can try to help you out further.
(and, P.S., I wasn't trying to be pedantic with a basic overview of the use of Chrome's developer tools. I was just trying to be helpful by not assuming anything. I hope you don't take it as an insult.)