On Wednesday, November 25, 2015 at 2:23:27 AM UTC-8, Volker Braun wrote: > > LD_LIBRARY_PATH strikes again... >
What can we do about it, though? I think the relevant module is "webbrowser". It has rather complicated logic and is therefore rather hard to convince to run a command through "sage-native-execute". If I place in sage/bin a script $ cat xdg-open #!/bin/sh exec sage-native-execute /usr/bin/xdg-open "$@" then sage: import webbrowser sage: webbrowser.open("http://google.com") True works. However, "sage -notebook=ipython" now doesn't produce an error, but doesn't open a browser window either! If I point my browser at the relevant URL (http://localhost:8888/, which is displayed but not hugely prominently) things work as expected. So it seems ipython does use "webbrowser" but does so in a more convoluted way that just webbrowser.open(...). Apparently a way that prevents the simple wrapping script approach from working. -- 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+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.