Hello Raymond, how did you start Jupyter? The options in your .bashrc indicate that Anaconda noticed your Spark installation and prepared for starting jupyter through pyspark. But if you start Jupyter directly with plain Python, it won't know about Spark. The problem isn't with the code in your notebook, but somewhere outside the notebook.
hope that helps, Roland -- You received this message because you are subscribed to the Google Groups "Project Jupyter" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/a62b031f-2edd-4b49-a5ce-13854df728c9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
