These are chat archives for ipython/ipython

9th
Sep 2015
Ge Yang
@episodeyang
Sep 09 2015 13:59
This message was deleted
Thomas A Caswell
@tacaswell
Sep 09 2015 19:48
Hey, can anyone provide guidance on how to test that tab-complete works correctly for 3rd party projects?
Steven Silvester
@blink1073
Sep 09 2015 19:52
nobody cares about your silly little project @tacaswell :stuck_out_tongue_winking_eye:
Thomas A Caswell
@tacaswell
Sep 09 2015 19:55
Asking for day-job stuff!
Steven Silvester
@blink1073
Sep 09 2015 19:55
either way, still fun to poke you with a stick
Min RK
@minrk
Sep 09 2015 19:57
@tacaswell if you instantiate an InteractiveShell, you can populate shell.user_ns and call shell.complete('name')
Thomas A Caswell
@tacaswell
Sep 09 2015 20:08
@minrk Thanks
Min RK
@minrk
Sep 09 2015 20:10
You can also check out our own tests in IPython.core.tests.test_completer
Thomas A Caswell
@tacaswell
Sep 09 2015 20:49
I did look at those tests, but they all involve calls to get_ipython() which my linter claimed was not defined in the module so I assume there is some magic going on in iptest
Steven Silvester
@blink1073
Sep 09 2015 20:50
from IPython import get_ipython
Min RK
@minrk
Sep 09 2015 21:11
get_ipython is injected by some magic in the test runner. you can instantiate your own InteractiveShell and use it the same way without the global.
Steven Silvester
@blink1073
Sep 09 2015 21:26
ping @minrk @rgbkrk, jupyter/jupyter-js-services#20 is ready for red pen
Brian E. Granger
@ellisonbg
Sep 09 2015 21:53
@blink1073 great!
Ge Yang
@episodeyang
Sep 09 2015 23:01
Hey guys! Just want to pop up and say hi!
Jonathan Frederic
@jdfreder
Sep 09 2015 23:07
@episodeyang hi