NameError: name 'q' is not defined site:stackoverflow.com code example Example: name 'q' is not defined in jupyter notebook 'q' is not defind