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
typing ?
on the command line brings up IPython help
#9015
Comments
comment:5
This is still the case, though now
Volker, you are currently the Ipython-in-Sage guru - is there an easy way to fix this? |
comment:6
I was hoping that you could add diff --git a/src/sage/repl/interpreter.py b/src/sage/repl/interpreter.py
index dbbd683..e748b9e 100644
--- a/src/sage/repl/interpreter.py
+++ b/src/sage/repl/interpreter.py
@@ -502,6 +502,7 @@ class SageCrashHandler(IPAppCrashHandler):
class SageTerminalApp(TerminalIPythonApp):
name = u'Sage'
+ usage='Useful message here'
crash_handler_class = SageCrashHandler
test_shell = False
I don't know what else to try right now. |
Commit: |
Author: Volker Braun |
New commits:
|
comment:9
If you want to figure out what happens you can always run in under the debugger:
|
comment:10
I have two comments. First, I think we should document this way of debugging. I now see that Second, do we want to have an easy way of accessing the IPython help? Maybe that information could just be added to the end of the current help string. I'll see if I can come up with something over the next few days. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:12
IMHO it is confusing to have the IPython help crop up. If there is anything that is necessary to use Sage in there then we should add it to our docs. |
comment:13
I think this is good. Regarding the comment in the ticket description,
I guess there are ways to do this (see http://stackoverflow.com/questions/10875442/possible-to-change-a-functions-repr-in-python), but I don't know if they're worth it. The banner when you start Sage already says
Positive review from me. Karl-Dieter? |
comment:14
I won't have time to look at this, the reason I got involved was just checking whether the ticket was still valid. I'm sure you did due diligence :) |
Reviewer: John Palmieri |
Changed branch from u/vbraun/sole_questionmark_on_the_command_line to |
I was looking over the shoulder of a new user as he started Sage for the first time and typed
?
on the command line. This shows the IPython help text which doesn't mention Sage at all.We should change this to show the text displayed with
help()
.Printing some more information when someone types
help
without the parenthesis would also be nice.CC: @vbraun
Component: documentation
Author: Volker Braun
Branch/Commit:
148d8e0
Reviewer: John Palmieri
Issue created by migration from https://trac.sagemath.org/ticket/9015
The text was updated successfully, but these errors were encountered: