Skip to content

Import inline_plots on load - #42628

Open
antonio-rojas wants to merge 1 commit into
sagemath:developfrom
antonio-rojas:inline-plots-import
Open

Import inline_plots on load#42628
antonio-rojas wants to merge 1 commit into
sagemath:developfrom
antonio-rojas:inline-plots-import

Conversation

@antonio-rojas

Copy link
Copy Markdown
Member

So that inline plots can be configured without any further imports

So that inline plots can be configured without any further imports
@antonio-rojas

Copy link
Copy Markdown
Member Author

cc @Ordoviz

@Ordoviz Ordoviz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should also remove sage: from sage.repl.interpreter import inline_plots from the docstring of inline_plots since it isn't needed anymore.

Comment thread src/sage/repl/all.py
Comment on lines +4 to 6
from sage.repl.interpreter import inline_plots

lazy_import('sage.repl.interpreter', 'preparser')

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
from sage.repl.interpreter import inline_plots
lazy_import('sage.repl.interpreter', 'preparser')
lazy_import('sage.repl.interpreter', ['preparser', 'inline_plots'])

to fix the test in startup.py

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants