https://pantsbuild.org/ logo
#general
Title
# general
p

plain-sundown-25537

02/07/2020, 6:09 AM
question about ipython req string in 1.25.rc0, this doesn’t seem to work .
Copy code
[ipython]
version: ["ipython==5.8.0 ; python_version<'3'","ipython==7.11.1 ; python_version>='3'"]
h

hundreds-father-404

02/07/2020, 6:14 AM
Was it working in the prior release?
p

plain-sundown-25537

02/07/2020, 6:35 AM
working in repl section
h

hundreds-father-404

02/07/2020, 4:04 PM
Ah I see. So, the issue is that
version
expects only one string, not a list. Try this:
Copy code
[ipython]
version: ipython==5.8.0 ; python_version<'3'
extra_requirements: +["ipython==7.11.1 ; python_version>='3'"]
p

plain-sundown-25537

02/07/2020, 7:42 PM
OH!
that looks weird… couldn’t guess that
h

hundreds-father-404

02/07/2020, 7:44 PM
./pants help ipython
will tell you what the type of every option is. Was there any error message?
👍 1
p

plain-sundown-25537

02/08/2020, 12:35 AM
Copy code
11:45 $ ./pants help ipython
ipython:

No options available.
h

hundreds-father-404

02/08/2020, 12:36 AM
oh, that’s annoying.
./pants help-advanced ipython
p

plain-sundown-25537

02/08/2020, 12:37 AM
ya .. hide and seek..
h

hundreds-father-404

02/08/2020, 12:37 AM
The idea of
help-advanced
is that it’s useful for the Pants admin, rather than the every day Pants user. Generally, we don’t expect anyone at your org to be needing to set
--ipython-version
other than you / any other admins, so we mark it as advanced for less noise for every day users
p

plain-sundown-25537

02/08/2020, 12:38 AM
yup 😄
I usually read the source code..
😢 1
h

hundreds-father-404

02/08/2020, 12:41 AM
Hm, let us know if you have feedback on how to improve the
help
experience! We’ve been trying to improve things recently like changing the formatting and, soon, pointing to related option scopes that might be relevant.
p

plain-sundown-25537

02/08/2020, 12:43 AM
I think we can have
help xx
as general entrance.
h

hundreds-father-404

02/08/2020, 12:59 AM
I think we can have help xx as general entrance.
What do you mean?