On Jan 8, 3:28 am, Volker Braun <vbraun.n...@gmail.com> wrote: > The notebook stuff hurts us twice in import times: First, many modules have > their path added to sys.path making it longer. Second, the notebook stuff > is actually imported in a plain commandline Sage session. And the modules > are pretty slow, for example flaskext.babel is the slowest single module in > all of Sage.
Doesn't that make it a prime candidate for lazy import? Since it's basically accessed through a single function, even if the standard lazy importation is too difficult to get working properly, it should be easy to get a custom solution in: Instead of importing all notebook-related stuff, supply a function 'notebook' that imports the right stuff, injects it in the appropriate namespaces, and overwrites its own binding with the normal "notebook" function, and then calls it. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To post to this group, send email to sage-devel@googlegroups.com. To unsubscribe from this group, send email to sage-devel+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel?hl=en.