Opened 10 years ago
Closed 9 years ago
#12926 closed defect (duplicate)
`sage -ipython` doesn't use the sage directory for ipython.
Reported by: | itaibn | Owned by: | itaibn |
---|---|---|---|
Priority: | major | Milestone: | sage-duplicate/invalid/wontfix |
Component: | interfaces | Keywords: | ipython |
Cc: | Merged in: | ||
Authors: | Reviewers: | Jason Grout | |
Report Upstream: | N/A | Work issues: | |
Branch: | Commit: | ||
Dependencies: | Stopgaps: |
Description
The command sage -ipython
uses ~/.ipython
as it's configurations directory. This is probably not the intended behaviour, since programs installed through sage
are not supposed to interfere with installed independently. In fact, if one installs the latest version of ipython
and runs sage ipython
it returns the following error message:
WARNING: Configuration file ipythonrc not found. Ignoring request. ------------------------------------------------------------ Traceback (most recent call last): File "/home/itaibn/sage-5.0.beta7/local/lib/python2.7/site-packages/IPython/ConfigLoader.py", line 66, in load fname = filefind(fname,incpath) File "/home/itaibn/sage-5.0.beta7/local/lib/python2.7/site-packages/IPython/genutils.py", line 554, in filefind ' not found in current or supplied directories:' + `alt_dirs` IOError: File'ipythonrc' not found in current or supplied directories:u'/home/itaibn/.ipython' WARNING: Problems loading configuration file 'ipythonrc' Starting with default -bare bones- configuration.
And then then continues with ipython
in what is presumably the -bare bones-
configuration.
Attachments (1)
Change History (5)
comment:1 follow-up: ↓ 2 Changed 10 years ago by
Changed 10 years ago by
comment:2 in reply to: ↑ 1 Changed 10 years ago by
Replying to jhpalmieri:
This is probably a duplicate of #12911.
It seems similar, but I'm not sure. That ticket looks like it is about running something internal in sage
rather the command-line interface, but it does seem similar.
comment:3 Changed 10 years ago by
Maybe it's not a duplicate. Unfortunately, the "obvious" patch
-
spkg/bin/sage-env
diff --git a/spkg/bin/sage-env b/spkg/bin/sage-env
a b if [ "$SAGE_STARTUP_FILE" = "" ]; then 298 298 export SAGE_STARTUP_FILE 299 299 fi 300 300 301 IPYTHONDIR="$DOT_SAGE/ipython" && export IPYTHONDIR 302 301 303 if [ -d "$SAGE_ROOT/local/lib/python" ]; then 302 304 PYTHONPATH="$SAGE_ROOT/local/lib/python" 303 305 if [ -n "$SAGE_PATH" ]; then
doesn't work: then sage --ipython
has "sage: " as a prompt. I think that someone needs to improve how we deal with the IPython config files. See also #12167.
comment:4 Changed 9 years ago by
- Milestone changed from sage-5.7 to sage-duplicate/invalid/wontfix
- Resolution set to duplicate
- Reviewers set to Jason Grout
- Status changed from new to closed
Fixed by #12719.
This is probably a duplicate of #12911.