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

sage -n ipython broken #17769

Closed
cheuberg opened this issue Feb 11, 2015 · 12 comments
Closed

sage -n ipython broken #17769

cheuberg opened this issue Feb 11, 2015 · 12 comments

Comments

@cheuberg
Copy link
Contributor

From 6.5.rc0 on,

    sage -n ipython

does no longer work, it starts the sagenb notebook with directory ipython.sagenb.

Until 6.5.beta6, this opened the ipython notebook.

sage -n -h says:

   --notebook [NOTEBOOK], -n [NOTEBOOK], -notebook [NOTEBOOK]
                        The notebook to run [one of: default, ipython,
                        sagenb]. Default is sagenb

sage -h says

  -n, --notebook      -- shortcut for --notebook=default

So these two bits of documentation contradict each other and we have a change of
behaviour.

CC: @kiwifb @rbeezer

Component: scripts

Keywords: notebook

Author: Volker Braun

Branch: 8dc0a94

Reviewer: François Bissey

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

@cheuberg cheuberg added this to the sage-6.5 milestone Feb 11, 2015
@cheuberg
Copy link
Contributor Author

comment:1

I do not know whether this is intentional, especially after the discussions in #17280
where we broke old behaviour already once.

I guess that this has been introduced in #17685

@sagetrac-tmonteil
Copy link
Mannequin

sagetrac-tmonteil mannequin commented Feb 11, 2015

comment:3

Replying to @cheuberg:

I guess that this has been introduced in #17685

No, the changes made here only concern the -n=blah calls, you can still do sage -n=ipython.

@sagetrac-tmonteil
Copy link
Mannequin

sagetrac-tmonteil mannequin commented Feb 11, 2015

comment:4

More precisely, the problem is here

if [ "$1" = "-notebook" -o "$1" = '--notebook' -o "$1" = '-n' ]; then
    shift
    sage-cleaner >/dev/null 2>&1 &
    exec sage-notebook --notebook=default "$@"
fi

It was introduced in sagemath/sagetrac-mirror@487807c

As you can see, the 'default' notebook is explicitly called (consistently with sage -h).

Ciao,
Thierry

@vbraun
Copy link
Member

vbraun commented Feb 11, 2015

Branch: u/vbraun/sage__n_ipython_broken

@vbraun
Copy link
Member

vbraun commented Feb 11, 2015

Commit: 8dc0a94

@vbraun
Copy link
Member

vbraun commented Feb 11, 2015

comment:6

The previous if clause triggered before #17685, so it is technically caused by that ticket.


New commits:

8dc0a94let sage-notebook deal with default options

@vbraun
Copy link
Member

vbraun commented Feb 11, 2015

Author: Volker Braun

@kiwifb
Copy link
Member

kiwifb commented Feb 11, 2015

comment:8

After inspection of what sage-notebook can parse, it looks good to me.

@vbraun
Copy link
Member

vbraun commented Feb 12, 2015

Reviewer: François Bissey

@vbraun
Copy link
Member

vbraun commented Feb 13, 2015

Changed branch from u/vbraun/sage__n_ipython_broken to 8dc0a94

@fchapoton

This comment has been minimized.

@fchapoton
Copy link
Contributor

Changed commit from 8dc0a94 to none

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

4 participants