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

Remove references to 0.11 and 0.12 from config/overview.rst #3905

Merged
merged 2 commits into from Aug 8, 2013

Conversation

dpsanders
Copy link
Contributor

Remove ancient references to 0.11 and 0.12 from config/overview.rst.

By the way, I do not see where in <developer_guide> the information referred to in the first paragraph is.

can enable their objects to take advantage of the configuration system
should consult our :ref:`developer guide <developer_guide>`
This section describes the IPython configuration system.

Copy link
Member

Choose a reason for hiding this comment

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

keep a ..note: here maybe with a link to 0.13.x doc that explain how to migrate. something around "If you are migrating from pre 0.12 version of IPython please have a look at migrating your configurations +link"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea. What would be the format of the link?
e.g. http://ipython.org/ipython-doc/rel-0.13.2/index.htm ?
This does not currently exist

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

0.13.2 does exist, you just made a typo (left out 'l')

Copy link
Member

Choose a reason for hiding this comment

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

D'oh

Copy link
Contributor Author

Choose a reason for hiding this comment

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

On Mon, Aug 5, 2013 at 12:52 PM, Matthias Bussonnier <
notifications@github.com> wrote:

In docs/source/config/overview.rst:

-.. warning::

  • If you are upgrading to version 0.11 of IPython, you will need to migrate
  • your old :file:ipythonrc or :file:ipy_user_conf.py configuration files
  • to the new system. You may want to read the section on
  • :ref:configuring IPython <configuring_ipython>. There are also some ideas
  • on the IPython wiki <http://wiki.ipython.org/Cookbook/Moving_config_to_IPython_0.11>_

- about this.

-The discussion that follows is focused on teaching users how to configure
-IPython to their liking. Developers who want to know more about how they
-can enable their objects to take advantage of the configuration system
-should consult our :ref:developer guide <developer_guide>
+This section describes the IPython configuration system.
+

D'oh

??


Reply to this email directly or view it on GitHubhttps://github.com//pull/3905/files#r5585036
.

Dr. David P. Sanders

Profesor Titular "A" / Associate Professor
Departamento de Física, Facultad de Ciencias
Universidad Nacional Autónoma de México (UNAM)

dpsanders@gmail.com
http://sistemas.fciencias.unam.mx/~dsanders

Cubículo / office: #414, 4o. piso del Depto. de Física

Tel.: +52 55 5622 4965

Copy link
Member

Choose a reason for hiding this comment

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

D'oh

D'oh== I should have seen the typo htm->html , was a response to min's comment.

@Carreau
Copy link
Member

Carreau commented Aug 5, 2013

Looks like a sensible cleanup. In any case I think this part of the configuration need a much more User-friendly version which is not targeted at developers.

@dpsanders
Copy link
Contributor Author

I completely agree. This is something that I don't know much about (mainly because of the lack of documentation :D).
Would you like to sketch something?

@Carreau
Copy link
Member

Carreau commented Aug 5, 2013

This is something that I don't know much about (mainly because of the lack of documentation :D)

Exactly and that's the point. What do you know? what would you like to know ? I'm biased because I know the config system. Try to make a description of that before reading the rest.


IMHO it should be pretty strait forward.

Basic :

  • Where are your configs files (global/qtconsole/notebook/...)
  • If you have none, how to create them/ locate them, but let's assume they exist most of the time,
    just put a note with references to more advance doc
  • the syntax :
    • c = get_config() at top. Should already exist.
    • # is use for comment.
    • usually c.CamleCase.attribute = value (most should already exist and be commented, just uncomment and modify)

What do you think ?

@dpsanders
Copy link
Contributor Author

The following FAQs are what occurred to me. (They seem to me to be much more FAQs than the ones at ipython.org/faq.html !)
Most of them are actually my own questions that I still don't know the correct answers to!

Imports

  • How do I make it so I don't have to type the same list of imports all the time?
  • What do I write?
  • What should the filename be?
  • Where does it go?
  • Where is there a template that shows me how to do this?

Configuration

  • Can I configure IPython as I would like?
  • How does the configuration work?
  • What should I configure about IPython? (I.e., what is a bad idea to mess with?)
  • How do I do the configuration?
  • How do I make it so that I don't have to type the magic incantation %config InlineBackend.figure_format = "svg" all the time?
  • What does that magic incantation actually mean, and what does it do?

Appearance

  • How do I change the horrible font / color scheme / width of text / heading size in the IPython Notebook?
  • Even once I have worked that out, how do I change the font / size of the completions that drop down when I type TAB?

@Carreau
Copy link
Member

Carreau commented Aug 6, 2013

Imports :

http://ipython.org/ipython-doc/stable/config/overview.html#startup-files

configuration

Can I configure IPython as I would like?

+1

How does the configuration work?

Too complicated for a beginner, you really want to know about MetaHasTrait ?

What should I configure about IPython? (I.e., what is a bad idea to mess with?)

Answer depend too much on user IMHO. Don't mess with what you don't understand usually work well.

How do I do the configuration?

Ah, this one is good.

How do I make it so that I don't have to type the magic incantation %config InlineBackend.figure_format = "svg" all the time?
What does that magic incantation actually mean, and what does it do?

I think it is the other way around, people don't know usually of the %config magic, and I think that as long as it cannot be persistant it should stay this way.

Appearance

How do I change the horrible font / color scheme / width of text / heading size in the IPython Notebook?
Even once I have worked that out, how do I change the font / size of the completions that drop down when I type TAB?

All this go into custom.css. teaching css though cannot fit in FAQ.


Good to see what you think, you might be a little harsh on "horrible font".

@fperez
Copy link
Member

fperez commented Aug 6, 2013

"horrible font" isn't appropriate for a FAQ.

Note that the default choices are driven mostly by a need to minimize compatibility issues, hence we can't get too creative in picking pretty but not-always-available fonts.

@dpsanders
Copy link
Contributor Author

"horrible font" isn't appropriate for a FAQ.

Of course it's not appropriate for a FAQ, understood as an official document on the IPython website, and I never suggested that it was. In any case, the font has as much to do with the browser as any choice by an IPython developer. I was certainly not intending any disrespect to anybody -- I have voiced several times my admiration for the project, team, and amazing work that I was privileged to witness at first hand a couple of weeks ago (and hope to contribute more substantially to in the future).

Rather, I was doing a brainstorming session, as suggested by @Carreau , trying to put myself in the shoes of new users who want to use IPython and make it their own, but don't know how to go about that, and seeing how that could impact on the documentation.

What I came up with are indeed FAQ's, in the sense of questions that people do frequently ask themselves, and wish that they had somebody else to ask! This can be the basis of a great FAQ document, in my opinion.

@dpsanders
Copy link
Contributor Author

@Carreau

How do I make it so that I don't have to type the magic incantation %config InlineBackend.figure_format = "svg" all the time?
What does that magic incantation actually mean, and what does it do?

I think it is the other way around, people don't know usually of the %config magic, and I think that as long as it cannot be persistant it should stay this way.

What do you mean by "persistent" here?
Certainly people should know that there is a way of configuring matplotlib inline output to get better quality figures out.
But I am certainly in favour of having an easier (=shorter, more intuitive) way of doing this!

@Carreau
Copy link
Member

Carreau commented Aug 7, 2013

What do you mean by "persistent" here?

persistent in the sens you quit qtconsole and come back with the same settings.

Certainly people should know that there is a way of configuring matplotlib inline output to get better quality figures out.

I don't consider 'retina' as beeing better figure quality.And why would 'retina' and matplotlib be a special config option that need more care than others ?

But I am certainly in favour of having an easier (=shorter, more intuitive) way of doing this!

But right now we cant modify programmatically a user config file. once this is done we can have something like %config Foo.bar=2 --persist=<global|qtconsole|notebook> or a full UI to change the values. But it is not yet the case.

You should document from the more global to the specific:

  • All config value can be changed in the config file, and this is permanent.
  • Only a subset of config value might be set through %config, and may not survive kernel restart.

Explaining the first is enough for people to survive, if you explain only the second at some point you will have to explain the first to people. So let's explain the first first, and live the second for advance usage.

@minrk
Copy link
Member

minrk commented Aug 8, 2013

Merging this as-is, since it is simple cleanup. We can continue the further discussion of the contents of the docs elsewhere.

minrk added a commit that referenced this pull request Aug 8, 2013
Remove stale references to 0.11 and 0.12 from config/overview.rst
@minrk minrk merged commit c52cec8 into ipython:master Aug 8, 2013
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
Remove stale references to 0.11 and 0.12 from config/overview.rst
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.

None yet

4 participants