Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jupyter integration error #220

Open
jwkvam opened this issue Mar 24, 2018 · 0 comments
Open

jupyter integration error #220

jwkvam opened this issue Mar 24, 2018 · 0 comments
Labels

Comments

@jwkvam
Copy link
Owner

jwkvam commented Mar 24, 2018

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-7-f9ba7e6b9d7c> in <module>()
----> 1 get_ipython().run_line_magic('bowtie', 'app')

~/miniconda/lib/python3.6/site-packages/IPython/core/interactiveshell.py in run_line_magic(self, magic_name, line, _stack_depth)
   2093                 kwargs['local_ns'] = sys._getframe(stack_depth).f_locals
   2094             with self.builtin_trap:
-> 2095                 result = fn(*args,**kwargs)
   2096             return result
   2097 

<decorator-gen-132> in bowtie(self, line)

~/miniconda/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):

~/miniconda/lib/python3.6/site-packages/bowtie/_magic.py in bowtie(self, line)
    138 
    139         # pylint: disable=protected-access
--> 140         app._build(notebook=get_notebook_name())
    141 
    142         filepath = './{}/src/server.py'.format(_DIRECTORY)

~/miniconda/lib/python3.6/site-packages/bowtie/_magic.py in get_notebook_name()
     43                                 params={'token': server.get('token', '')})
     44         for session in json.loads(response.text):
---> 45             if session['kernel']['id'] == kernel_id:
     46                 relative_path = session['notebook']['path']
     47                 return pjoin(server['notebook_dir'], relative_path)

TypeError: string indices must be integers
@jwkvam jwkvam added the bug label Sep 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant