Notebook for testing display

42 views
Skip to first unread message

Kwankyu Lee

unread,
Mar 23, 2022, 8:31:43 AM3/23/22
to sage-devel
Dear sage developers,

Let me advertise the nice notebook for testing display in Jupyter,


prepared by Eric Gourgoulhon. This is also accessible through the ticket 


Thank you.

Ray Rogers

unread,
Mar 23, 2022, 12:32:13 PM3/23/22
to sage-...@googlegroups.com

I think I am going to have a "moment" here!  Thanks!
This sheet is just great; all the things I have wanted to do, demonstrated :)
I do have some trivial suggestions (to make it even more impressive)

1) I had to do
    pip install ipympl
Would it be reasonable to do a try/except in the header?

2) I changed the 3D graphs and animation to include
g.show()
g.save('test.html');
!google-chrome --new-window test.html
!firefox --new-window test.html
--
I can't tell you how much I enjoy these!  And can publish to web pages!  
It worked with Google Chrome and Firefox. 
Not to get tedious:
I am also implementing a test so that the test.html output only displays once  and updates can be done by  the web page refresh.

3) I changed/added @interact demos to allow external access to internal values externally. 

4) My only request/question is to be able to add the "interact" controls to HTML output; but that's probably a step to far, and would require some real Javascript coding :)  


I have done several practice runs of things similar to this sheet, but this page much cleaner and thorough; without having to have all the ifs/ands/buts that I usually end up with :)

rrogers

--
You received this message because you are subscribed to the Google Groups "sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/bcd158d5-447d-4f9f-8e10-dc4be496f486n%40googlegroups.com.

Eric Gourgoulhon

unread,
Mar 23, 2022, 2:06:54 PM3/23/22
to sage-devel
Le mercredi 23 mars 2022 à 17:32:13 UTC+1, raymond....@gmail.com a écrit :
1) I had to do

    pip install ipympl
Would it be reasonable to do a try/except in the header?


Actually a dependency of jupyterlab_widgets to ipympl has been introduced in Sage 9.6.beta5, so that as soon as you run

sage -i jupyterlab_widgets

ipympl will automatically be installed.
If JupyterLab becomes a standard package in Sage (cf. the discussion at https://groups.google.com/g/sage-devel/c/orUpb-YXIHk/m/GIxiKN4eDQAJ), then even running the above command will not be necessary.

2) I changed the 3D graphs and animation to include

3) I changed/added @interact demos to allow external access to internal values externally. 

As the notebook lies in some github repository,  feel free to submit a pull request to amend it.
 
Eric.
Reply all
Reply to author
Forward
0 new messages