Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pictures not visible (from blog comment) #1

Open
jkthompson opened this issue Jun 27, 2015 · 1 comment
Open

Pictures not visible (from blog comment) #1

jkthompson opened this issue Jun 27, 2015 · 1 comment

Comments

@jkthompson
Copy link
Owner

Thanks.
The best cheet sheet of pyspark.
In the notebook the pictures are not visible and complains about the v3 version, instead of the v4.
Python 2.7.6 , IPython 3.1.0 , in a prepackaged VM with Spark (from Edx mooc)

@jkthompson
Copy link
Owner Author

I can reproduce this behavior in the Edx VM by cloning pyspark-pictures to the host machine, and then uploading 'pyspark-pictures.ipynb' to the VM via the notebook landing page. This breaks the assumptions of the HTML used to display the pictures, since the .ipynb file has been moved outside the project folder. The solution is to copy the entire project folder into the VM.

  1. on host machine, copy entire 'pyspark-pictures' project folder to same folder with 'Vagrantfile'
  2. restart VM (if running)
  3. ssh to VM from host machine: (e.g > sudo vagrant ssh ), pyspark-pictures will be in '/vagrant'
  4. copy pyspark-pictures to home directory on VM (e.g. > cp -r /vagrant/pyspark-pictures ~/ )
  5. open pyspark-pictures.ipynb from notebook, pictures should display

The 'v3/v4 warning' is an Ipython version issue and can be safely ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant