Answer the question
In order to leave comments, you need to log in
Why can't he see the .json files in the c .ipynb folder?
We have: -
the main working jupyter notebook which lies in a certain folder.
-next to the same folder is .json from where you need to pick up the data.
when contacting:
def jsonRead (jsonPth):
try:
with open(jsonPth, 'r', encoding='utf-8') as fh:
information = json.load(fh)
return information
except (IOError, Exception) as e:
print(e)
information = jsonRead("полный правильный путь до файла(или относительный)")
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question