Just to copy/paste the (temporary) solution from https://github.com/jupyter/notebook/issues/4369#issuecomment-459377498
Run the following code:
get_ipython().config.get('IPKernelApp', {})['parent_appname'] = ""
And then, run the pandas code:
df = pd.read_csv(path/'texts.csv')
df.head()