Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not import sagenb at startup #15335

Closed
fchapoton opened this issue Oct 27, 2013 · 25 comments
Closed

Do not import sagenb at startup #15335

fchapoton opened this issue Oct 27, 2013 · 25 comments

Comments

@fchapoton
Copy link
Contributor

Component: misc

Keywords: startup

Author: Jeroen Demeyer

Branch/Commit: u/jdemeyer/ticket/15335 @ da0d133

Reviewer: Travis Scrimshaw

Issue created by migration from https://trac.sagemath.org/ticket/15335

@fchapoton fchapoton added this to the sage-6.1 milestone Oct 27, 2013
@fchapoton
Copy link
Contributor Author

comment:1

Attachment: trac_15335.patch.gz

not ready, work in progress

@fchapoton
Copy link
Contributor Author

Changed keywords from none to startup

@fchapoton

This comment has been minimized.

@fchapoton
Copy link
Contributor Author

comment:4

I suspect that the line

# For doctesting.
import sagenb

in sagenb/notebook/all.py could be the culprit. Could one juste remove this line ?

@jdemeyer
Copy link

jdemeyer commented Jan 8, 2014

Branch: u/jdemeyer/ticket/15335

@jdemeyer

This comment has been minimized.

@jdemeyer
Copy link

jdemeyer commented Jan 8, 2014

Commit: 4b2c470

@jdemeyer
Copy link

jdemeyer commented Jan 8, 2014

New commits:

4b2c470Do not import sagenb at Sage startup

@jdemeyer
Copy link

jdemeyer commented Jan 8, 2014

Author: Jeroen Demeyer

@jdemeyer jdemeyer changed the title do not import sagenb at startup Do not import sagenb at startup Jan 8, 2014
@tscrim
Copy link
Collaborator

tscrim commented Jan 8, 2014

Changed branch from u/jdemeyer/ticket/15335 to u/tscrim/ticket/15335

@tscrim
Copy link
Collaborator

tscrim commented Jan 8, 2014

Changed commit from 4b2c470 to b28a85e

@tscrim
Copy link
Collaborator

tscrim commented Jan 8, 2014

comment:7

I get close to a 25% speedup in startup time. I've fixed the failing doctest from the patchbot in misc/dev_tools.py that I could reproduce, so if that also works for you Jeroen, then this is a positive review from me.


New commits:

b28a85eFixed doctest.

@tscrim
Copy link
Collaborator

tscrim commented Jan 8, 2014

Reviewer: Travis Scrimshaw

@fchapoton
Copy link
Contributor Author

comment:8

When running sage -t -a, I got a failure (same as the bot) in src/sage/all.py

@jdemeyer
Copy link

jdemeyer commented Jan 8, 2014

comment:9

The problem is some of these doctests now depend on the --sagenb option given to the doctester.

@jdemeyer
Copy link

jdemeyer commented Jan 8, 2014

comment:10

This works:

./sage -t src/sage/all.py

This doesn't:

./sage -t --sagenb src/sage/all.py

@jdemeyer
Copy link

jdemeyer commented Jan 8, 2014

Changed branch from u/tscrim/ticket/15335 to u/jdemeyer/ticket/15335

@jdemeyer
Copy link

jdemeyer commented Jan 8, 2014

New commits:

214bf49Only add sagenb globals if actually testing a sagenb file
da0d133Merge branch 'u/tscrim/ticket/15335' of git://trac.sagemath.org/sage into ticket/15335

@jdemeyer
Copy link

jdemeyer commented Jan 8, 2014

Changed commit from b28a85e to da0d133

@jdemeyer
Copy link

jdemeyer commented Jan 8, 2014

comment:13

Travis: agreed with your change.

sagemath/sagetrac-mirror@214bf49 needs review to fix the --sagenb option issue.

@tscrim
Copy link
Collaborator

tscrim commented Jan 8, 2014

comment:14

LGTMTM.

@jdemeyer
Copy link

jdemeyer commented Jan 9, 2014

comment:15

Never mind.

@ppurka
Copy link
Member

ppurka commented Feb 1, 2014

comment:18

This has broken latex in the notebook. See sagemath/sagenb#195 for details.

@jdemeyer
Copy link

jdemeyer commented Feb 1, 2014

comment:19

Sorry guys :-(

@tscrim
Copy link
Collaborator

tscrim commented Feb 2, 2014

comment:20

Sorry!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants