These are chat archives for ipython/ipython

7th
Dec 2014
Kyle Kelley
@rgbkrk
Dec 07 2014 05:01
I was adding new nodes to nbviewer to rotate in a new configuration
It nuked all of etcd and fleet, the whole system went down
:(
Bringing up a new one, posted a status to Twitter
That went terribad
Min RK
@minrk
Dec 07 2014 05:03
whoops
Jonathan Frederic
@jdfreder
Dec 07 2014 05:07
ouch
Kyle Kelley
@rgbkrk
Dec 07 2014 05:12
yeah
next time I think I should have another machine separate from the cluster just in case
anyway, its back up
to make matters worse, right as I was adding the startup file to the nodes, my internet went out
super awesome
:P
Min RK
@minrk
Dec 07 2014 05:20
Is it back up?
Kyle Kelley
@rgbkrk
Dec 07 2014 05:22
well
just noticed two nodes fell out
3/5 of the time, yes
I just took those two out
Fun CoreOS tonight
Min RK
@minrk
Dec 07 2014 05:23
ok, that makes sense
I was seeing weird behavior, where refresh was failing, but first load was okay
some nodes out makes sense
looks fine, now
Kyle Kelley
@rgbkrk
Dec 07 2014 05:23
yeah
Should be good for now
full migration to jupyter namespace in the docker images, up to date versions
If it didn't fail on me adding new nodes to an existing cluster, I would do that now to replace the two bad nodes
ah
I wonder if me not setting the super enterprisey™ Update Group settings when I launched the node caused trouble
I'm paying for CoreOS's update service
I linked them using the same token, but didn't add the field for update group
Dan Bartow
@dbartow
Dec 07 2014 22:34
Hi everyone - I'm trying to get set up in a developer mode on the ipython codebase, using Pycharm as my IDE. Ive checked out code from master and built ipython on many machines, many times... but can you offer me any hints on how to go about running ipython and the notebook server from within PyCharm? Is there a better IDE you guys recommend for developing the nbserver code? Not sure this is even possible since setup.py compiles changes to the html templates, so maybe real-time dev from within the IDE isn't the way to go anyways, but was hoping to be able to profile and trace code attached to the process itself. Any tips on how you guys do your day to day development would be awesome. Cheers.
Min RK
@minrk
Dec 07 2014 22:48
I don't use an IDE.
Where did you get the idea that setup.py compiles templates? The templates don't change.
I just use pip install -e ., and work in TextMate, or whatever editor
Dan Bartow
@dbartow
Dec 07 2014 22:50
Well - it's been my observation that if I go edit an html template... to change a page, add buttons, fix bugs, etc... that I have to run setup.py to see those changes reflected in the browser
Min RK
@minrk
Dec 07 2014 22:50
Only if you do a non-development install
setup.py install copies files into site-packages
pip install -e or setup.py develop or setup.py symlink will all load IPython, templates included, from the source tree
Dan Bartow
@dbartow
Dec 07 2014 22:51
Ah hahhhhhhh
Min RK
@minrk
Dec 07 2014 22:51
there's no compilation or anything, it's just copy. The same is true for all Python packages.
The call to make to start the notebook server is IPython.html.notebookapp.launch_new_instance()
Dan Bartow
@dbartow
Dec 07 2014 22:52
Perhaps what I thought was compilation of those templates is just some runtime magic then, Im not too familiar with django but I thought there was some html combining happening somewhere
guess t's just copying as you say, and then some framework magic I need to dig into ;)
Min RK
@minrk
Dec 07 2014 22:53
What IPython code are you planning to work on?
Dan Bartow
@dbartow
Dec 07 2014 22:55
I'll be looking primarily to do UI work and UI functionality work, adding buttons and UI functionality, hence the desire to be able to see quick changes in the browser based on coding over in the IDE. I realize that the timing is kinda weird with Jupyter happening, but I'd love to be able to add some usability features to the notebook server like adding/deleting folders, drag and drop of notebooks into folders, and so-on
Min RK
@minrk
Dec 07 2014 22:55
Yeah, missed the boat to get into IPython 3.0, but there's always work to be done.
Jupyter's not a new project, just a reorganization of existing code, so work can follow it around (repo reorg might make some things a bit annoying)
If you did a development install, and start with ipython notebook refreshing the page will update HTML templates, js, css, etc.
Dan Bartow
@dbartow
Dec 07 2014 22:58
Since Ive been incorrectly running setup.py install, as a developer it seems, if I just run setup.py develop right now, will that put me in the right mode?
Min RK
@minrk
Dec 07 2014 22:58
I would do pip uninstall ipython first
Dan Bartow
@dbartow
Dec 07 2014 22:58
Roger that
Min RK
@minrk
Dec 07 2014 22:59
Repeatedly, until it says there's no IPython left
It's easy to get Python confused with multiple versions of a package installed in different ways
Dan Bartow
@dbartow
Dec 07 2014 22:59
Understood
Min RK
@minrk
Dec 07 2014 22:59
(not an IPython thing, this is true of all Python packages)
Dan Bartow
@dbartow
Dec 07 2014 23:01
Thanks so much, I appreciate your guidance and fast reply as always.