In [1]:
library()


---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-1-08f7c7c5e038> in <module>()
----> 1 library()

NameError: name 'library' is not defined

In [2]:
library(findpython)


---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-2-2703e7a8f408> in <module>()
----> 1 library(findpython)

NameError: name 'library' is not defined

In [3]:
can_find_python_cmd()


---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-3-a3c6737eb90f> in <module>()
----> 1 can_find_python_cmd()

NameError: name 'can_find_python_cmd' is not defined

In [4]:
find_python_cmd()


---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-4-0f70dd676324> in <module>()
----> 1 find_python_cmd()

NameError: name 'find_python_cmd' is not defined

In [5]:
load(Rcpp)


---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
/opt/conda/envs/jupyternotebook/lib/python3.6/site-packages/IPython/core/interactiveshell.py in find_user_code(self, target, raw, py_only, skip_encoding_cookie, search_ns)
   3161         try:                                              # User namespace
-> 3162             codeobj = eval(target, self.user_ns)
   3163         except Exception:

<string> in <module>()

NameError: name 'Rcpp' is not defined

During handling of the above exception, another exception occurred:

ValueError                                Traceback (most recent call last)
<ipython-input-5-5eceb298354f> in <module>()
----> 1 get_ipython().magic('load (Rcpp)')

/opt/conda/envs/jupyternotebook/lib/python3.6/site-packages/IPython/core/interactiveshell.py in magic(self, arg_s)
   2144         magic_name, _, magic_arg_s = arg_s.partition(' ')
   2145         magic_name = magic_name.lstrip(prefilter.ESC_MAGIC)
-> 2146         return self.run_line_magic(magic_name, magic_arg_s)
   2147 
   2148     #-------------------------------------------------------------------------

/opt/conda/envs/jupyternotebook/lib/python3.6/site-packages/IPython/core/interactiveshell.py in run_line_magic(self, magic_name, line)
   2065                 kwargs['local_ns'] = sys._getframe(stack_depth).f_locals
   2066             with self.builtin_trap:
-> 2067                 result = fn(*args,**kwargs)
   2068             return result
   2069 

<decorator-gen-47> in load(self, arg_s)

/opt/conda/envs/jupyternotebook/lib/python3.6/site-packages/IPython/core/magic.py in <lambda>(f, *a, **k)
    185     # but it's overkill for just that one bit of state.
    186     def magic_deco(arg):
--> 187         call = lambda f, *a, **k: f(*a, **k)
    188 
    189         if callable(arg):

/opt/conda/envs/jupyternotebook/lib/python3.6/site-packages/IPython/core/magics/code.py in load(self, arg_s)
    342         search_ns = 'n' in opts
    343 
--> 344         contents = self.shell.find_user_code(args, search_ns=search_ns)
    345 
    346         if 's' in opts:

/opt/conda/envs/jupyternotebook/lib/python3.6/site-packages/IPython/core/interactiveshell.py in find_user_code(self, target, raw, py_only, skip_encoding_cookie, search_ns)
   3163         except Exception:
   3164             raise ValueError(("'%s' was not found in history, as a file, url, "
-> 3165                                 "nor in the user namespace.") % target)
   3166 
   3167         if isinstance(codeobj, str):

ValueError: '(Rcpp)' was not found in history, as a file, url, nor in the user namespace.

In [ ]: