[Neuroimaging] Nipy.org new website needs a complete remake

vanessa sochat vsochat at stanford.edu
Tue Jul 28 06:51:22 CEST 2015


Hi Eleftherios,

I chose flask because I love using it, and it made sense given that all
these packages are in python. I probably would enjoy some of the other
generators just as much, and in fact a backup plan is to port the entire
thing to a different one if the "freezing" process runs into trouble. To be
honest, I have tried jekyll and thought it was kind of annoying. I'd
probably still give it another go if someone really wanted it. I've never
looked at Pelican - I will check it out!

To answer your question - yes - any changes to the "main" pages that aren't
rendered dynamically (the projects) would be a change to the main template,
in this case index.html as it extends base.html (which has the navigation,
brain on the side, etc). It's all jinja templates, which is another reason
it would be easy to move the design around.

I'm likely going to do the freezing testing this weekend (it's hard to do
long work sessions during the week as I am still doing this graduate school
thing) and hopefully we will know for sure if this will be a good solution
early next week. I will keep you updated, of course.

Best,

Vanessa

On Mon, Jul 27, 2015 at 9:41 PM, Eleftherios Garyfallidis <
garyfallidis at gmail.com> wrote:

> Hi Vanessa,
>
> The website starts looking *much* better. Thank you for pushing forward
> with this. And I am very happy that
> the website is built with Flask now a Python tool!!! :)
>
> When you have some time I would like to know why you selected Flask from
> the list of static page generators
> and if you have actually played with Pelican. By the way I am perfectly
> happy with Flask. I just wanted to know
> if you have looked into the differences and if there are some clear
> advantages which I am not aware of.
>
> Also, If now if I want for example to add a text button under the
> nipy.gihub.io logo I will need to change the template right?
> Are these templates generated automatically by jinja or another engine? Is
> this easy to change the template with the current
> design?
>
> Thanks again!
> :) :) :)
>
> Best regards,
> Eleftherios
>
>
>
>
>
>
> On Mon, Jul 27, 2015 at 8:41 PM, vanessa sochat <vsochat at stanford.edu>
> wrote:
>
>> ok, simple addition of projects to the front page:
>>
>> http://www.vbmis.com/bmi/project/nipy/
>>
>> On Mon, Jul 27, 2015 at 9:31 AM, vanessa sochat <vsochat at stanford.edu>
>> wrote:
>>
>>> We can freeze the site into a static version for github pages:
>>>
>>> https://pythonhosted.org/Frozen-Flask/
>>>
>>> I have one function that takes the template name as a variable, so I'm
>>> anticipating needing to write custom code to make sure those are generated
>>> as well.
>>>
>>> I'm sure there would be a way to review the rendered pages before
>>> deploying. I don't know off the top of my head. I usually just try and
>>> figure stuff out as I'm working on it!
>>>
>>> On Mon, Jul 27, 2015 at 9:24 AM, Ariel Rokem <arokem at gmail.com> wrote:
>>>
>>>>
>>>>
>>>> On Mon, Jul 27, 2015 at 8:57 AM, vanessa sochat <vsochat at stanford.edu>
>>>> wrote:
>>>>
>>>>> Yes, of course! The current design generates the navigation and pages
>>>>> dynamically from this file:
>>>>>
>>>>> https://github.com/vsoch/nipy/blob/master/code/static/projects.tsv
>>>>>
>>>>> If there is nothing added beyond that, a standard template page is
>>>>> used for the package's page:
>>>>>
>>>>> https://github.com/vsoch/nipy/blob/master/code/templates/project.html
>>>>>
>>>>> but for custom stuffs, the user can add a template page with the same
>>>>> name as the markdown_tag variable, for example, here is nipype:
>>>>>
>>>>> https://github.com/vsoch/nipy/blob/master/code/templates/nipype.html
>>>>>
>>>>> And of course the front page content will be generated in this fashion
>>>>> as well.
>>>>>
>>>>
>>>> That design is very elegant (in my opinion). Nice work! Even the
>>>> brain-snake is back, to everyone's relief.
>>>>
>>>> How are you planning to serve this up? Is there a way to do this
>>>> automatically through github? Any way to review the rendered website on PRs
>>>> before they are merged upstream?
>>>>
>>>>
>>>>> On Mon, Jul 27, 2015 at 8:53 AM, Ariel Rokem <arokem at gmail.com> wrote:
>>>>>
>>>>>>
>>>>>>
>>>>>> On Mon, Jul 27, 2015 at 5:54 AM, vanessa sochat <vsochat at stanford.edu
>>>>>> > wrote:
>>>>>>
>>>>>>> Having all packages nicely shown on the front page is a good idea -
>>>>>>> and I was thinking of having a nice visualization that would quickly show
>>>>>>> some stats next to each. I put the latest blob post mostly because I ran
>>>>>>> out of work time for the day. Is the old site living somewhere so I can
>>>>>>> take a look?
>>>>>>>
>>>>>>> Thanks so much for joining in the effort! For me, an important
>>>>>> change relative to the old page design is to allow the project list to
>>>>>> change over time and to allow people to easily advertise their
>>>>>> neuroimaging-in-python projects on this webpage. I would prefer not to have
>>>>>> the list of projects be statically enshrined into the design of the front
>>>>>> page. If you can make it organically change on the front page, that would
>>>>>> be good.
>>>>>>
>>>>>>
>>>>>>> Gaël - I completely agree about nilearn! I just copied the groups as
>>>>>>> is from the current page, and had I thought about this, probably would have
>>>>>>> questioned them.
>>>>>>>
>>>>>>> On Sun, Jul 26, 2015 at 10:25 PM, Gael Varoquaux <
>>>>>>> gael.varoquaux at normalesup.org> wrote:
>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> Since it is the time to gives one opinion
>>>>>>>>
>>>>>>>> - I agree with Elefterios that I think it is a good thing to have a
>>>>>>>> list
>>>>>>>>   of the projects on the front page. I liked how the old webpage
>>>>>>>> did it
>>>>>>>>
>>>>>>>> - The snake-brain logo is great. We should have it on the front
>>>>>>>> page.
>>>>>>>>
>>>>>>>> - Developper-oriented information should be less emphasized
>>>>>>>> compared to
>>>>>>>>   user-oriented information: 'view on github', 'contribute', 'A
>>>>>>>> natural
>>>>>>>>   home for collaboration' should be deemphasized compared to the
>>>>>>>> project
>>>>>>>>   directory. The reason is that we are trying to convince people to
>>>>>>>> use
>>>>>>>>   the nipy ecosystem, and for this, the highest priority is to
>>>>>>>> orient
>>>>>>>>   end users.
>>>>>>>>
>>>>>>>> My 2 cents,
>>>>>>>>
>>>>>>>> Gaël
>>>>>>>>
>>>>>>>> PS: Vanessa: Nilearn is not only for fMRI. It's for statistical
>>>>>>>> analysis
>>>>>>>> of images. It is also used for anatomical images:
>>>>>>>> http://nilearn.github.io/auto_examples/decoding/plot_oasis_vbm.html
>>>>>>>> If we could get a preprocessed, openly downloadable set of images
>>>>>>>> of eg
>>>>>>>> FA, we would do an example with diffusion too.
>>>>>>>> _______________________________________________
>>>>>>>> Neuroimaging mailing list
>>>>>>>> Neuroimaging at python.org
>>>>>>>> https://mail.python.org/mailman/listinfo/neuroimaging
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Vanessa Villamia Sochat
>>>>>>> Stanford University
>>>>>>> (603) 321-0676
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Neuroimaging mailing list
>>>>>>> Neuroimaging at python.org
>>>>>>> https://mail.python.org/mailman/listinfo/neuroimaging
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Neuroimaging mailing list
>>>>>> Neuroimaging at python.org
>>>>>> https://mail.python.org/mailman/listinfo/neuroimaging
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Vanessa Villamia Sochat
>>>>> Stanford University
>>>>> (603) 321-0676
>>>>>
>>>>> _______________________________________________
>>>>> Neuroimaging mailing list
>>>>> Neuroimaging at python.org
>>>>> https://mail.python.org/mailman/listinfo/neuroimaging
>>>>>
>>>>>
>>>>
>>>> _______________________________________________
>>>> Neuroimaging mailing list
>>>> Neuroimaging at python.org
>>>> https://mail.python.org/mailman/listinfo/neuroimaging
>>>>
>>>>
>>>
>>>
>>> --
>>> Vanessa Villamia Sochat
>>> Stanford University
>>> (603) 321-0676
>>>
>>
>>
>>
>> --
>> Vanessa Villamia Sochat
>> Stanford University
>> (603) 321-0676
>>
>> _______________________________________________
>> Neuroimaging mailing list
>> Neuroimaging at python.org
>> https://mail.python.org/mailman/listinfo/neuroimaging
>>
>>
>
> _______________________________________________
> Neuroimaging mailing list
> Neuroimaging at python.org
> https://mail.python.org/mailman/listinfo/neuroimaging
>
>


-- 
Vanessa Villamia Sochat
Stanford University
(603) 321-0676
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/neuroimaging/attachments/20150727/8243c78f/attachment.html>


More information about the Neuroimaging mailing list