Thanks to visit codestin.com
Credit goes to github.com

Skip to content

disable specifying kernel args on the notebook command-line #5593

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

Merged
merged 3 commits into from
Apr 20, 2014

Conversation

minrk
Copy link
Member

@minrk minrk commented Apr 11, 2014

this is deprecated in 2.0, and will be removed in 3.0

ipython notebook --pylab=inline will never work again!

@takluyver
Copy link
Member

We only gave a warning for --pylab - are there any other arguments people were used to using on the notebook server and getting passed down to the kernel?

@minrk
Copy link
Member Author

minrk commented Apr 16, 2014

I don't know of any that people are using on purpose. I do recall a couple of times it happened by accident and confused people.

@takluyver
Copy link
Member

Executive decision from @fperez : We can kill this for 3.0, but let's special case --pylab so it exits with a very clear message explaining that the flag has gone away, and that you can use %pylab instead. We should specifically mention %pylab here, not just %matplotlib, because for people with many notebooks using the pylab namespace, %pylab is the simplest migration math. We will continue to support %pylab, although we don't recommend it for new code.

@Carreau
Copy link
Member

Carreau commented Apr 17, 2014

Yep, agree that it should at least print a message that it does not work anymore.

@Carreau Carreau added this to the 3.0 milestone Apr 19, 2014
@Carreau
Copy link
Member

Carreau commented Apr 19, 2014

need rebase.

minrk added 2 commits April 19, 2014 12:58
this is deprecated in 2.0, and will be removed in 3.0
and remove the unused kernel flags
@minrk
Copy link
Member Author

minrk commented Apr 19, 2014

rebased

"""
)
def _pylab_changed(self, name, old, new):
"""when --pylab is specified, display a warning and ignore the value"""
Copy link
Member

Choose a reason for hiding this comment

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

Fernando reckoned (and I agree) that if --pylab is set, the server should actually refuse to start, because it's too easy to ignore the warning if it starts anyway.

Copy link
Member

Choose a reason for hiding this comment

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

Yup, and since this is only a startup issue, the most it's likely to break is people's aliases and work habits (which we want them to update), not existing code beyond now needing %pylab atop notebooks that might implicitly rely on having been started via --pylab.

Copy link
Member Author

Choose a reason for hiding this comment

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

Makes sense. Done.

Copy link
Member

Choose a reason for hiding this comment

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

Just for completeness, let's update the docstring to say it exits. Then I think this is ready for merge.

Copy link
Member

Choose a reason for hiding this comment

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

Just for completeness, let's update the docstring to say it exits. Then I think this is ready for merge.

Yep, I agree...

Copy link
Member Author

Choose a reason for hiding this comment

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

done.

takluyver added a commit that referenced this pull request Apr 20, 2014
disable specifying kernel args on the notebook command-line
@takluyver takluyver merged commit 619bd44 into ipython:master Apr 20, 2014
@Carreau
Copy link
Member

Carreau commented Apr 20, 2014

Should we ping the list about that ?

@fperez
Copy link
Member

fperez commented Apr 21, 2014

+1

On Sun, Apr 20, 2014 at 2:04 PM, Matthias Bussonnier <
[email protected]> wrote:

Should we ping the list about that ?


Reply to this email directly or view it on GitHubhttps://github.com//pull/5593#issuecomment-40904840
.

Fernando Perez (@fperez_org; http://fperez.org)
fperez.net-at-gmail: mailing lists only (I ignore this when swamped!)
fernando.perez-at-berkeley: contact me here for any direct mail

@Carreau
Copy link
Member

Carreau commented Apr 21, 2014

I took care of it.

@minrk minrk deleted the no-kernel-argv branch July 12, 2014 17:03
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
disable specifying kernel args on the notebook command-line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants