I tried to open the jupyter server app on my red-pitaya. But it does not work as I was expecing.
1. I can't open the examples. It seems like the notebook are looking in the /home/jupyter... folders and examples are missing. I have cloned the git-repository (as explained in the getting started tutorial) and those examples seem to exist. Shoudn't these file exist?
2. I can't run the code. When I eg try to run the cell
Code: Select all
import shutil
shutil.copytree("/opt/redpitaya/jupyter/examples", "examples")
import os
os.system("/bin/chmod -x examples/*")
Code: Select all
FileExistsError Traceback (most recent call last)
<ipython-input-2-0ed0b1fcc284> in <module>()
1 import shutil
----> 2 shutil.copytree("/opt/redpitaya/jupyter/examples", "examples")
3 import os
4 os.system("/bin/chmod -x examples/*")
/usr/lib/python3.5/shutil.py in copytree(src, dst, symlinks, ignore, copy_function, ignore_dangling_symlinks)
307 ignored_names = set()
308
--> 309 os.makedirs(dst)
310 errors = []
311 for name in names:
/usr/lib/python3.5/os.py in makedirs(name, mode, exist_ok)
239 return
240 try:
--> 241 mkdir(name, mode)
242 except OSError:
243 # Cannot rely on checking for EEXIST, since the operating system
FileExistsError: [Errno 17] File exists: 'examples'
3. In the examples. they seem to use the module named "redpitaya". which is not found in my anaconda-install. I try to search for this module and it can't be found as an existing conda-package.
How do i get this python module?
4. I don't understand how the code should work. Should the python code be run on the red-pitaya sending information to my browser window? Or should The python code be running on my PC and fetch information from the red-pitaya?