jupyter / atom-notebook

[Deprecated] Jupyter Notebook, but inside Atom.
MIT License
306 stars 48 forks source link

all Python cells throw AttributError: 'list' object has no attribute 'isspace' #38

Open kfix opened 8 years ago

kfix commented 8 years ago

OSX 10.11.3 Atom 1.5.3 Python 3.5.1 apm: jupyter-notebook: 0.0.9 pip: notebook: 4.1.0

Every time I try to execute a cell, this is the result:

Traceback (most recent call last):

  File "/usr/local/lib/python3.5/site-packages/ipykernel/ipkernel.py", line 175, in do_execute
    shell.run_cell(code, store_history=store_history, silent=silent)

  File "/usr/local/lib/python3.5/site-packages/IPython/core/interactiveshell.py", line 2629, in run_cell
    if (not raw_cell) or raw_cell.isspace():

AttributeError: 'list' object has no attribute 'isspace'
gnestor commented 8 years ago

@rgbkrk Any ideas?

rgbkrk commented 8 years ago

No clue there. Version drift between the kernel gateway and the ipython kernel?

Have you tried out any of the JS packages we've been making @gnestor?

gnestor commented 8 years ago

@rgbkrk Not yet but I think it's time to start!

kfix commented 8 years ago

Upgraded jupyter_kernel_gateway from 0.3.1 to 0.4.0. No change. Maybe the plugin needs to do a little enforcement and print an idiot warning?

leonqli commented 8 years ago

Same here. Anybody has a resolution?

wandonye commented 8 years ago

Same here

rornor commented 8 years ago

here too

console shows this:

Invalid Kernel message: 
iopub content field code is not of type string
Kernel._onWSMessage @ C:\Users\rornor\.atom\packages\jupyter-notebook\node_modules\jupyter-js-services\lib\kernel.js:770

Also, (assuming cause by this issue) when I close Atom, all subprocesses close but jupyter-kernelgateway process detaches and remains active.

dawnft commented 8 years ago

Same here. @gnestor @rgbkrk

uralik commented 8 years ago

The same here. @gnestor @rgbkrk

rgbkrk commented 8 years ago

Once we have the prebuilt zmq story better underway, I'll be happy to come back to this repo to make it a fully standalone (no need for kernel gateway) Atom package, like Hydrogen. Right now I don't have time to assist with this package, though I'll happily merge PRs that help push us towards the right efforts. Most of my open source node+jupyter time is in the nteract org.

shierve commented 8 years ago

Any solutions?

wiheto commented 7 years ago

Another one here. Ubuntu: 16.04 Atom: 1.7.2 Python: 3.5.1 jupyter-notebook: 0.0.9

wiheto commented 7 years ago

Installed latest Atom version (1.10.2), now I have problems opening jypyter server: https://github.com/jupyter/atom-notebook/issues/55

gigaj0ule commented 4 years ago

This happens on line 2910 of interactiveshell.py for me

/usr/local/lib/python3.6/dist-packages/IPython/core/interactiveshell.py in run_cell_async(self, raw_cell, store_history, silent, shell_futures)
   2908         result = ExecutionResult(info)
   2909 
-> 2910         if (not raw_cell) or raw_cell.isspace():
   2911             self.last_execution_succeeded = True
   2912             self.last_execution_result = result

AttributeError: 'builtin_function_or_method' object has no attribute 'isspace'
Out[5]: 'None'

In [6]: str(interactive_variables['interactive_console'].run_cell(print, True).result)    

Seems like it could be solved with a simple try/except

see: https://github.com/ipython/ipython/issues/11914