Tag: nltk jupyter笔记本

使用tkinter在jupyter笔记本内部绘制nltk

我试图绘制jupyter-notebook内的jupyter-notebookgraphics( 内联 )。 但有错误: TclError: no display name and no $DISPLAY environment variable 我试图将$DISPLAY设置$DISPLAY不同的值: $env DISPLAY=0.0 # or $env DISPLAY=inline # or $env DISPLAY= 但有错误(或类似): TclError: couldn't connect to display "0.0" 这里是我的代码https://github.com/hyzhak/nltk-experiments/blob/master/main.ipynb最后一个单元格。 环境:官方anaconda3docker – continuumio/anaconda3:4.4.0 https://github.com/ContinuumIO/docker-images 。 用nltk==3.2.3里面。 Python 3.6.1 |Anaconda 4.4.0 (64-bit)| (default, May 11 2017, 13:09:58) Type "copyright", "credits" or "license" for more […]