Problem with tab completion

As above, my IDE is Atom, specifically the Hydrogen package (which essentially ports Jupyter kernels).

The autocompletion does not work with a python kernel (this is the only way I’ve tried it; I haven’t tried a ROOT C++ notebook). Looking at the attached screen shot,


hitting tab with the cursor at that point gives the following total output in my terminal (apparently the same error my IDE gave [see above]):

Last login: Wed Oct  3 13:37:34 on ttys002
michael:~$ /Users/michael/anaconda2/bin/jupyter_mac.command ; exit;
[I 16:02:34.830 NotebookApp] Serving notebooks from local directory: /Users/michael
[I 16:02:34.830 NotebookApp] 0 active kernels 
[I 16:02:34.830 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/?token=9f6c91adc4d3b70b7ea360fa703e7cb4e0a4a061b02c0e58
[I 16:02:34.830 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 16:02:34.831 NotebookApp] 
    
    Copy/paste this URL into your browser when you connect for the first time,
    to login with a token:
        http://localhost:8888/?token=9f6c91adc4d3b70b7ea360fa703e7cb4e0a4a061b02c0e58
[I 16:02:35.690 NotebookApp] Accepting one-time-token-authenticated connection from ::1
[I 16:03:26.344 NotebookApp] Creating new notebook in 
[I 16:03:27.001 NotebookApp] Kernel started: 36965046-86bc-4d0a-bd2f-4641a5b72f8f
[W 16:03:27.041 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20181003160233 (::1) 26.54ms referer=http://localhost:8888/notebooks/Untitled4.ipynb?kernel_name=python2
[I 16:03:28.683 NotebookApp] Adapting to protocol v5.1 for kernel 36965046-86bc-4d0a-bd2f-4641a5b72f8f
input_line_24:1:10: fatal error: 'dlfcn.h' file not found
#include "dlfcn.h"
         ^~~~~~~~~
input_line_27:2:24: error: use of undeclared identifier 'RTLD_NOW'
 (dlopen("libRint.so", RTLD_NOW))
                       ^
Error in <HandleInterpreterException>: Error evaluating expression (dlopen("libRint.so", RTLD_NOW)).
Execution of your code was aborted.
IncrementalExecutor::executeFunction: symbol '_ZN7TTabComC1Ev' unresolved while linking symbol '__cf_16'!
You are probably missing the definition of TTabCom::TTabCom()
Maybe you need to load the corresponding shared library?
IncrementalExecutor::executeFunction: symbol '_ZN7TTabCom4HookEPcPiRNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEE' unresolved while linking symbol '__cf_16'!
You are probably missing the definition of TTabCom::Hook(char*, int*, std::__1::basic_ostream<char, std::__1::char_traits<char> >&)
Maybe you need to load the corresponding shared library?
Error in <TClingCallFunc::make_wrapper>: Failed to compile
  ==== SOURCE BEGIN ====
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wformat-security"
__attribute__((used)) extern "C" void __cf_16(void* obj, int nargs, void** args, void* ret)
{
   if (ret) {
      new (ret) (vector<string>) (((vector<string> (&)(const char*))_TTabComHook)(*(const char**)args[0]));
      return;
   }
   else {
      ((vector<string> (&)(const char*))_TTabComHook)(*(const char**)args[0]);
      return;
   }
}
#pragma clang diagnostic pop
  ==== SOURCE END ====

 *** Break *** segmentation violation
[/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info)
[/usr/lib/system/libsystem_c.dylib] _swrite (no debug info)
[/Applications/root_build/lib/libPyROOT.so] Cppyy::CallO(long, void*, void*, long) /Applications/root/bindings/pyroot/src/Cppyy.cxx:504
[/Applications/root_build/lib/libPyROOT.so] PyROOT::TCppObjectByValueExecutor::Execute(long, void*, PyROOT::TCallContext*) /Applications/root/bindings/pyroot/src/Executors.cxx:79
[/Applications/root_build/lib/libPyROOT.so] PyROOT::TMethodHolder::CallFast(void*, long, PyROOT::TCallContext*) /Applications/root/bindings/pyroot/src/TMethodHolder.cxx:110
[/Applications/root_build/lib/libPyROOT.so] PyROOT::TMethodHolder::CallSafe(void*, long, PyROOT::TCallContext*) /Applications/root/bindings/pyroot/src/TMethodHolder.cxx:122
[/Applications/root_build/lib/libPyROOT.so] PyROOT::TMethodHolder::Execute(void*, long, PyROOT::TCallContext*) /Applications/root/bindings/pyroot/src/TMethodHolder.cxx:0
[/Applications/root_build/lib/libPyROOT.so] PyROOT::(anonymous namespace)::mp_call(PyROOT::MethodProxy*, _object*, _object*) /Applications/root/bindings/pyroot/src/MethodProxy.cxx:598
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyObject_Call (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] function_call (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyObject_Call (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] instancemethod_call (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyObject_Call (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] function_call (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyObject_Call (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] function_call (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyObject_Call (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] function_call (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyObject_Call (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] function_call (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyObject_Call (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] RunModule (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] Py_Main (no debug info)
[/usr/lib/system/libdyld.dylib] start (no debug info)
[<unknown binary>] (no debug info)
[IPKernelApp] ERROR | Exception in message handler:
Traceback (most recent call last):
  File "/Users/michael/anaconda2/lib/python2.7/site-packages/ipykernel/kernelbase.py", line 235, in dispatch_shell
    handler(stream, idents, msg)
  File "/Users/michael/anaconda2/lib/python2.7/site-packages/ipykernel/kernelbase.py", line 434, in complete_request
    matches = self.do_complete(code, cursor_pos)
  File "/Users/michael/anaconda2/lib/python2.7/site-packages/ipykernel/ipkernel.py", line 257, in do_complete
    txt, matches = self.shell.complete('', line, line_cursor)
  File "/Users/michael/anaconda2/lib/python2.7/site-packages/IPython/core/interactiveshell.py", line 1988, in complete
    return self.Completer.complete(text, line, cursor_pos)
  File "/Users/michael/anaconda2/lib/python2.7/site-packages/IPython/core/completer.py", line 1160, in complete
    custom_res = self.dispatch_custom_completer(text)
  File "/Users/michael/anaconda2/lib/python2.7/site-packages/IPython/core/completer.py", line 1082, in dispatch_custom_completer
    res = c(event)
  File "/Applications/root_build/lib/JupyROOT/cppcompleter.py", line 169, in complete
    return self._completeImpl(event.line)
  File "/Applications/root_build/lib/JupyROOT/cppcompleter.py", line 136, in _completeImpl
    suggestions = self._getSuggestions(line)
  File "/Applications/root_build/lib/JupyROOT/cppcompleter.py", line 123, in _getSuggestions
    return self.hook(line)
SystemError: vector<string> ::_TTabComHook(const char* pattern) =>
    problem in C++; program state has been reset
[I 16:05:26.977 NotebookApp] Saving file at /Untitled4.ipynb

(The difficulty including dlfcn.h is a new problem, apparently unrelated, which I’ve yet to take the time to debug.)