[IPython-User] Styling Notebook

Matthias BUSSONNIER bussonniermatthias@gmail....
Tue Aug 7 14:17:53 CDT 2012


Le 7 août 2012 à 21:14, Darren Govoni a écrit :

> Thanks. I will try that. I'm using  13

it won't works, is s only on 0.14.dev…
sorry.


you can try a 
$ locate jquery-ui.min.css
…
it will reduce the places where to look for..

-- 
Matthias



> 
> On Tue, 2012-08-07 at 20:55 +0200, Matthias BUSSONNIER wrote:
>> 
>> 
>> 
>> 
>> 
>> 
>> Le 7 août 2012 à 20:50, Carl Smith a écrit :
>> 
>>> I'm on my phone, but I think you need to look in the hidden IPy dir which is your home dir.
>>> ~/.ipython
>>> 
>>> 
>>> 
>> 
>> 
>> Which version are you using ? 
>> 
>> 
>> If you are running from dev, you don't need to overwrite the installation's file: 
>> 
>> 
>> Just go into your .profile/desired_profile/
>> 
>> 
>> create a folder named static/
>> and create in the folder any file you want to override
>> (basically copy the /static folder from the source an modify what you wish)
>> 
>> 
>> Meaning you can have a per profile theme.
>> -- 
>> Matthias
>> 
>> 
>> 
>>> On Aug 7, 2012 7:47 PM, "Darren Govoni" <darren@ontrenet.com> wrote:
>>> Hi,
>>>   I'm trying to style my ipython notebook, but can't find the directory:
>>> 
>>> "..\frontend\html\notebook\static\jquery\css\themes"
>>> 
>>> Where is it located? I use linux.
>>> 
>>> Darren
>>> 
>>> On Mon, 2012-07-02 at 06:18 +0100, Carl Smith wrote:
>>>> This is cool. Have you mentioned it on github or IPython Dev?
>>>> 
>>>> On Jul 2, 2012 2:27 AM, "klo uo" <klonuo@gmail.com> wrote:
>>>> Initially I thought to try and roll my own CSS, but when I looked
>>>> closer it's probably bad idea.
>>>> What I managed to do is distill missing elements from "base" css style
>>>> and then include main css from themes available here:
>>>> http://jqueryui.com/themeroller
>>>> 
>>>> In short, you download theme and copy theme folder (it's in css
>>>> subfolder in downloaded theme archive) in
>>>> "..\frontend\html\notebook\static\jquery\css\themes", then just put
>>>> there (in new theme folder) my attached css file, and change line 9 in
>>>> "..\frontend\html\notebook\templates\page.html" accordingly.
>>>> This can be simplified with entry in ipython notebook config file I guess.
>>>> 
>>>> Screenshots:
>>>> http://i.imgur.com/KbxfU.png
>>>> http://i.imgur.com/5NUmK.png
>>>> 
>>>> Attached css file is not "least common denominator" and can be further
>>>> reduced, and I think it works fine from what I tested. With dark
>>>> themes it doesn't work. I also wonder why the author of these changes
>>>> didn't create new css file and then include original css in it, so
>>>> that this kind of reversing could have been avoided, and changing the
>>>> theme would have been easier.
>>>> 
>>>> Whatever, if you think it's interesting I could include detailed
>>>> walkthrough in wiki, although procedure is simple but maybe not
>>>> obvious to all. Also if I missed something I would like to know. Don't
>>>> tell me there is already way to do this :D
>>>> 
>>>> Cheers
>>>> 
>>>> _______________________________________________
>>>> IPython-User mailing list
>>>> IPython-User@scipy.org
>>>> http://mail.scipy.org/mailman/listinfo/ipython-user
>>>> 
>>>> _______________________________________________
>>>> IPython-User mailing list
>>>> IPython-User@scipy.org
>>>> http://mail.scipy.org/mailman/listinfo/ipython-user
>>> 
>>> 
>>> 
>>> _______________________________________________
>>> IPython-User mailing list
>>> IPython-User@scipy.org
>>> http://mail.scipy.org/mailman/listinfo/ipython-user
>>> 
>>> _______________________________________________
>>> IPython-User mailing list
>>> IPython-User@scipy.org
>>> http://mail.scipy.org/mailman/listinfo/ipython-user
>> 
>> _______________________________________________
>> IPython-User mailing list
>> IPython-User@scipy.org
>> http://mail.scipy.org/mailman/listinfo/ipython-user
> 
> _______________________________________________
> IPython-User mailing list
> IPython-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-user

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-user/attachments/20120807/902bad8c/attachment-0001.html 


More information about the IPython-User mailing list