You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Library included using Installing libraries with method 2. can be used also in Jupyter notebook when the new package is added to to sys.path.
Run these commands on notebook cell before importing new packages (assuming Python 3.6 is used): import sys sys.path.insert(0, '/mnt/\<cluster-name\>-pvc/scikit/lib/python3.6/site-packages/')
You can check if the path was added to first line of sys.path by running next command: for p in sys.path: print(p)
After that, you can import new installed packages for example: from spark_sklearn import GridSearchCV
Still need to figure out is there way to automate that to notebook initialization to remove need for user to add path for every notebook manually.
Adding libraries to Spark using virtualenvs doesn't work with Jupyter Notebook. Have to see how to make it work.
The text was updated successfully, but these errors were encountered: