These are chat archives for ipython/ipython

2nd
Apr 2015
epifanio
@epifanio
Apr 02 2015 02:26
@minrk in a notebook i’m using the parallel processing using view = rc.load_balanced_view()
results = view.map(plotFunction, list(generator_dates(param1, param2)), ordered=False)
the notebook runs fine, what’s the best way to avoid to execute the next cell before all the processes are done ?
for now i have:
for r in results:
    print(r)
    sys.stdout.flush()
in a cell, so until it is running, the other cells are not executed
that’s good, but it prints all ’none’ in the output. if i remove the print then i never know if it is running fine or not
epifanio
@epifanio
Apr 02 2015 02:31
is there any alternative way ? i was thinking of a progress bar (assuming the number of elements in list(generator_dates) is known)
Anthony Louis Burns, Esq.
@anthonylouisburns
Apr 02 2015 04:00
Anyone have any thoughts on integrating nbconvert with jekyll and git pages
Andrew Gibiansky
@gibiansky
Apr 02 2015 20:37
I'm trying to set up tmpnb and having some issues. After running the docker setup commands (quickstart), I just get "Proxy target messing" when loading the page. How can i debug this / any suggestions?
Andrew Gibiansky
@gibiansky
Apr 02 2015 20:42
Specifically, the error is "docker.errors.APIError: 404 Client Error: Not Found ("client and server don't have same version (client : 1.13, server: 1.12)")"... this is just on a ubuntu droplet on DO
Scott Sanderson
@ssanderson
Apr 02 2015 20:51
is it a known issue that IPython's file upload fails on files that are bigger than ~30MB?
Gordon Bean
@brazilbean
Apr 02 2015 21:08
I am not a developer (just a user), but I developed a cell magic that I think may be useful to the broader community - how would I go about making it more available?
Min RK
@minrk
Apr 02 2015 21:24
@ssanderson don't think so.
Scott Sanderson
@ssanderson
Apr 02 2015 21:25
ok, bug report incoming shortly then
Min RK
@minrk
Apr 02 2015 21:25
@brazilbean make it a Python package, then it can be installed with pip, and loaded with %load_ext
Gordon Bean
@brazilbean
Apr 02 2015 21:28
@minrk where would I publicize the package? Is there a community repository for such extensions?
Matthias Bussonnier
@Carreau
Apr 02 2015 21:29
@gibiansky this seem weird. Open an issue on Tmpnb repo, kyle knows more about that.
Min RK
@minrk
Apr 02 2015 21:29
It should be its own package. You can publicize on the ipython-dev list.
And you can put a link on the wiki.
Gordon Bean
@brazilbean
Apr 02 2015 21:31
@minrk helpful - thank you!
Scott Sanderson
@ssanderson
Apr 02 2015 22:10
@gibiansky that's telling you that the docker daemon running on your host machine is using a different version of the docker API than the version of docker-py that's running in your tmpnb instance
docker-py is using 1.13, the daemon is using 1.12, so it looks like you need to upgrade docker on your host
Min RK
@minrk
Apr 02 2015 22:29
@takluyver ha - we are still opening the notebook, signing it, and saving it, even though the notebook isn't modified at all.
Thomas Kluyver
@takluyver
Apr 02 2015 22:30
aha
performance optimisation time?
Thomas Kluyver
@takluyver
Apr 02 2015 23:17
I think we may have been a bit hasty in merging #8235, glad though I am that we're using testpath. tempdir is used in a few non-tests places.
Though we could simply depend on testpath for all of those too, but it seems a bit...inelegant
Matthias Bussonnier
@Carreau
Apr 02 2015 23:18
We can make it a dep.
Woudl it be a dep of pure terminal one ?
(and if test dont' fail... more tests !)
Thomas Kluyver
@takluyver
Apr 02 2015 23:23
well, the tests won't pick that up, because it's a dependency for the tests themselves, so it should be installed when the tests run.
It wouldn't be a dep of pure IPython, but it would be for notebook, nbconvert and console.
which is not the end of the world, but it seems a bit odd to make them depend on a testing package.
Matthias Bussonnier
@Carreau
Apr 02 2015 23:24
it's to test path, not to test testing is it ?
Thomas Kluyver
@takluyver
Apr 02 2015 23:25
?
Matthias Bussonnier
@Carreau
Apr 02 2015 23:31
testpath is a package to test path, not to do testing like unitest.
so it does not seem that weird to me
Thomas Kluyver
@takluyver
Apr 02 2015 23:35
well, it's a package that's mostly for use by testing code
I just spoke to Min, he reckons we should just stick tempdir in genutils for now
we can revisit it later.
Matthias Bussonnier
@Carreau
Apr 02 2015 23:38
ok