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

calm-artist-46894

03/30/2020, 6:29 AM
pants version:
pants_version = "1.27.0.dev1"
With V2 engine, is there a way to config my pants.toml so that it will default
ipython
instead of
python
for Python
repl
? Also, I saw that there was a lot discussion about having a single
repl
goal V.S. one goal per implementation. However, with the version I am having right now, I still only see a single
repl
goal from
./pants gals
. Is this settled? Or still subject to change.
h

hundreds-father-404

03/30/2020, 6:34 AM
Yes, set this:
Copy code
[repl]
shell = "ipython"
I think it’s still open to discussion on whether we should have a single
repl
goal or have distinct goals like
python
,
ipython
,
ammonite
,
jshell
. For now, we went with using
--repl-shell
to control which one you use.
c

calm-artist-46894

03/30/2020, 4:27 PM
[repl]
shell = “ipython”
This would overwrite the
repl
shell for all languages, (we currently do both
python
and
go
)
h

hundreds-father-404

03/30/2020, 4:32 PM
Currently, V2 Repl is only implemented for Python, and
--repl-shell
doesn’t impact the V1 implementation of
repl
. So, it should be safe to configure this in
pants.toml
. But, this is good data for what the option should look like moving forward.
p

plain-sundown-25537

04/12/2020, 5:20 AM
ipython shell is fairly important
h

hundreds-father-404

04/12/2020, 5:22 AM
Agreed. Ipython should be working, already, though!
👍 1
either use
./pants repl --shell=ipython
or set this in `pants.toml`:
Copy code
[repl]
shell = "ipython"
p

plain-sundown-25537

04/12/2020, 5:23 AM
thanks @calm-artist-46894 has that in the private branch
❤️ 1
sorry pinging you during weekend.. not meant it
h

hundreds-father-404

04/12/2020, 5:26 AM
Awesome, glad to hear. Any other road blocks or issues you all have been experiencing? I’ll be putting out a new release on Monday which makes a nice performance improvement for the V2 implementation of
run
and
binary
so that we don’t re-resolve requirements when you only changed source files. That doesn’t yet apply to
repl
, but will be in the release after that.
p

plain-sundown-25537

04/12/2020, 5:28 AM
@calm-artist-46894 is working on owning this pilot, and he is on another project (urgent)
👍 1
h

hundreds-father-404

04/12/2020, 5:32 AM
Cool. No rush to either of you! Crazy times all around 😞 let us know when things calm down and we’ll be happy to help!
4 Views