d2l-en icon indicating copy to clipboard operation
d2l-en copied to clipboard

Remember a user's framework selection?

Open harryli0088 opened this issue 3 years ago • 2 comments

Hello! I'm wondering if it would be a nice convenience for the user if the website remembered their preferred framework (mxnet, pytorch, tensorflow) across pages or even across sessions. I would be happy to contribute if this is a good idea.

I'm not sure how the routing is done, but maybe there would be a way to save some local state in JS or in the URL within a session. Or this could be done across sessions through cookies or local storage (but tbh I don't like the idea of having to add a GDPR cookie warning).

Keep up the awesome work!!

harryli0088 avatar Oct 16 '21 22:10 harryli0088

Thanks and this sounds a nice feature to have! FYI, the entire website is built using sphinx: https://github.com/d2l-ai/d2l-book/blob/master/d2lbook/build.py#L307

astonzhang avatar Oct 18 '21 19:10 astonzhang

Yes please, add a cookie or another persistent setting for that :-)

g-i-o-r-g-i-o avatar Oct 25 '21 12:10 g-i-o-r-g-i-o