rapid-crayon-8232
04/15/2020, 5:34 PMIPython
(super cool btw), are there any plans to then support a repl with a jupyter notebook ?hundreds-father-404
04/15/2020, 5:39 PM--repl-py-ipython
. In V2, you set --repl-shell='ipython'
(subject to change - this doesn’t scale great when you have multiple languages)
are there any plans to then support a repl with a jupyter notebookYes, it is on the roadmap. A really important audience we want Pants to serve well is data science. I can’t speak for the other orgs who work on Pants, but it’s not in Toolchain’s roadmap for the next month. Closer to next 2-4 months, I’d say. We’d also be eager to pair with anyone who wanted to contribute jupyter support
happy-kitchen-89482
04/15/2020, 7:09 PMrapid-crayon-8232
04/15/2020, 7:34 PMjupyter
and my python_library
as dependencies:
python_binary(
name='notebook',
dependencies = [
'packages-python-pants/3rdparty:jupyter',
'packages-python-pants/package'
],
sources=['notebook.py'],
)
and with. notebook.py
containing:
import sys
from notebook.notebookapp import main
if __name__ == "__main__":
sys.exit(main())
it. correctly starts a notebook server, and I can create or open Ipython notebooks, but my dependency is not in sys.path 😞hundreds-father-404
04/15/2020, 7:36 PM./pants jupyter ::
, would you expect Pants to continue running or to start the server and then exit? Would you expect Pants to have hot reloading, i.e. to reload the notebook when you make changes to your repo?hundreds-father-404
04/15/2020, 7:36 PMrapid-crayon-8232
04/15/2020, 7:51 PM-e
mode), I just use the Restart
button of the notebook, to get the last installed version of my local packagehundreds-father-404
04/15/2020, 7:54 PMI’d expect pants to continue running till the server is closed, assuming that I can still run pants for other stuff in another terminal?Cool, to confirm, you’d be fine with it taking over the terminal, so long as you can have other terminals open, correct?
I just use the Restart button of the notebookOh, interesting. If you could choose, would you rather have automatic hot reloading or manual reloading that you must trigger, e.g. by pressing the Restart button? A restart completely wipes the session, right? So, automatic hot reloading would mean that something as simple as changing white space to your repo would cause your entire session to be wiped 😬
rapid-crayon-8232
04/15/2020, 7:57 PMrapid-crayon-8232
04/15/2020, 8:00 PM