我想尝试张量板并下载:get_started.ipynb
我先用jupyter笔记本启动此笔记本,然后选择上面的ipynb。
这里弹出一个错误:
加载此笔记本时发生未知错误。这个版本 可以加载笔记本格式或更早的格式。有关详细信息,请参见服务器日志。
jupyter --version
4.4.0
python3 --version
Python 3.6.3 :: Anaconda, Inc.
jupyter-notebook --version
5.7.8
如何解决?
更新: sudo chown -R user:user〜/ .local / share / jupyter解决了该错误(原为root:root)
但是该行: %tensorboard --logdir日志/适合
给我:
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
~/anaconda3/lib/python3.6/site-packages/IPython/core/formatters.py in __call__(self, obj)
691 type_pprinters=self.type_printers,
692 deferred_pprinters=self.deferred_printers)
--> 693 printer.pretty(obj)
694 printer.flush()
695 return stream.getvalue()
~/anaconda3/lib/python3.6/site-packages/IPython/lib/pretty.py in pretty(self, obj)
377 meth = cls._repr_pretty_
378 if callable(meth):
--> 379 return meth(obj, self, cycle)
380 return _default_pprint(obj, self, cycle)
381 finally:
TypeError: _repr_pretty_() takes 1 positional argument but 3 were given
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
~/anaconda3/lib/python3.6/site-packages/IPython/core/formatters.py in __call__(self, obj)
691 type_pprinters=self.type_printers,
692 deferred_pprinters=self.deferred_printers)
--> 693 printer.pretty(obj)
694 printer.flush()
695 return stream.getvalue()
~/anaconda3/lib/python3.6/site-packages/IPython/lib/pretty.py in pretty(self, obj)
377 meth = cls._repr_pretty_
378 if callable(meth):
--> 379 return meth(obj, self, cycle)
380 return _default_pprint(obj, self, cycle)
381 finally:
TypeError: _repr_pretty_() takes 1 positional argument but 3 were given