agoodm commented on issue #524: CLIMATE-966 - Jupyter Notebook to run cordex.py on AWS URL: https://github.com/apache/climate/pull/524#issuecomment-519706424 It works well. I have made a few modifications to fix download links. First, the last import should be changed to the following: ```python from IPython.display import Markdown, Image, FileLink ``` Then replace the very last cell with: ```python display(Markdown('Evaluation results')) ip_address = (requests.get('http://169.254.169.254/latest/meta-data/public-ipv4').content).decode('utf-8') for obs_info in obs_extractor.data: inst_name = obs_info['instrument'] var_name = obs_info['variable'] display(Markdown('Instrument: '+inst_name+'& Variable: '+var_name)) for season in seasons: savedir = os.path.join('evaluation_result', domain, inst_name, var_name, season) png_files = glob(os.path.join(savedir, '*.png')) for png_file in png_files: display(Image(png_file)) nc_file = glob(os.path.join(savedir, '*.nc'))[0] display(FileLink(nc_file)) os.chdir(cwd) ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services