[NbConvertApp] Converting notebook /home/aavsonet/scripts/reports/pipeline_report.ipynb to HTML [NbConvertApp] Executing notebook with kernel: python3 [NbConvertApp] ERROR | Error while converting '/home/aavsonet/scripts/reports/pipeline_report.ipynb' Traceback (most recent call last): File "/usr/lib/python3/dist-packages/nbconvert/nbconvertapp.py", line 410, in export_single_notebook output, resources = self.exporter.from_filename(notebook_filename, resources=resources) File "/usr/lib/python3/dist-packages/nbconvert/exporters/exporter.py", line 179, in from_filename return self.from_file(f, resources=resources, **kw) File "/usr/lib/python3/dist-packages/nbconvert/exporters/exporter.py", line 197, in from_file return self.from_notebook_node(nbformat.read(file_stream, as_version=4), resources=resources, **kw) File "/usr/lib/python3/dist-packages/nbconvert/exporters/html.py", line 95, in from_notebook_node return super(HTMLExporter, self).from_notebook_node(nb, resources, **kw) File "/usr/lib/python3/dist-packages/nbconvert/exporters/templateexporter.py", line 307, in from_notebook_node nb_copy, resources = super(TemplateExporter, self).from_notebook_node(nb, resources, **kw) File "/usr/lib/python3/dist-packages/nbconvert/exporters/exporter.py", line 139, in from_notebook_node nb_copy, resources = self._preprocess(nb_copy, resources) File "/usr/lib/python3/dist-packages/nbconvert/exporters/exporter.py", line 316, in _preprocess nbc, resc = preprocessor(nbc, resc) File "/usr/lib/python3/dist-packages/nbconvert/preprocessors/base.py", line 47, in __call__ return self.preprocess(nb, resources) File "/usr/lib/python3/dist-packages/nbconvert/preprocessors/execute.py", line 405, in preprocess nb, resources = super(ExecutePreprocessor, self).preprocess(nb, resources) File "/usr/lib/python3/dist-packages/nbconvert/preprocessors/base.py", line 69, in preprocess nb.cells[index], resources = self.preprocess_cell(cell, resources, index) File "/usr/lib/python3/dist-packages/nbconvert/preprocessors/execute.py", line 448, in preprocess_cell raise CellExecutionError.from_cell_and_msg(cell, out) nbconvert.preprocessors.execute.CellExecutionError: An error occurred while executing the following cell: ------------------ # are there any jpg's? logdir= "/mnt/data3/data/arne/"+telescope+"_logs/weather" jpgfile= os.path.join(logdir, yymmdd+ ".jpg") if os.path.exists(jpgfile): display(Image(jpgfile)) else: print("no SOD jpg") # plot boltwood log wlog= os.path.join(logdir, yymmdd+ ".log") if os.path.exists(wlog): cnt= 0 time= [] skytemp= [] airtemp= [] dewpoint= [] moonalt=[] moontime= [] with open(wlog, errors= "ignore") as input_file: for line in input_file: if not line[0]=='#': try: cnt+= 1 time.append(datetime.strptime(line[:19], "%Y-%m-%d %H:%M:%S")) isC= line[23]== 'C' isK= line[25]== 'K' skytemp.append( float(line[27:33]) if isC else (float(line[27:33])-32)*0.55555) airtemp.append( float(line[34:40]) if isC else (float(line[35:40])-32)*0.55555) dewpoint.append(float(line[59:65]) if isC else (float(line[59:65])-32)*0.55555) if 2== cnt % 8: # every eight moonalt.append( observatory.moon_altaz(observatory.datetime_to_astropy_time(time[-1])).alt.deg) moontime.append(time[-1]) except: pass plt.style.use('classic') fig = plt.figure(figsize = (8,8)) ax = fig.add_subplot(111) ax.plot(np.array(time), np.array(skytemp), 'o', color='white',markeredgecolor='blue',label="sky temp"); ax.plot(np.array(time), np.array(airtemp), '.', color='red',markeredgecolor='red',label="air temp"); ax.plot(np.array(time), np.array(dewpoint), '.', color='blue',markeredgecolor='blue',label="dew point"); ax.legend(loc='upper left', ncol=3, frameon=False) ax.set_xlim(telescop['sunset'], telescop['sunrise']) #ax.set_ylim(mintemp,maxtemp) ax.set(title="Boltwood weather",ylabel="temp(C)",xlabel="sunset to sunrise time"); ax2= ax.twinx() ax2.set_ylim(0, 90) ax2.plot(np.array(moontime), np.array(moonalt), 'o', color='white',markeredgecolor='green',label="Moon Altitude"); ax2.set(ylabel="moon alt") ax2.legend(loc='lower right', ncol=1, frameon=False) else: print("no boltwood log") ------------------ --------------------------------------------------------------------------- ValueError Traceback (most recent call last)  in   39   40 ax.plot(np.array(time), np.array(skytemp), 'o', color='white',markeredgecolor='blue',label="sky temp"); ---> 41 ax.plot(np.array(time), np.array(airtemp), '.', color='red',markeredgecolor='red',label="air temp");  42 ax.plot(np.array(time), np.array(dewpoint), '.', color='blue',markeredgecolor='blue',label="dew point");  43 ax.legend(loc='upper left', ncol=3, frameon=False) /usr/lib/python3/dist-packages/matplotlib/axes/_axes.py in plot(self, scalex, scaley, data, *args, **kwargs)  1663 """  1664 kwargs = cbook.normalize_kwargs(kwargs, mlines.Line2D._alias_map) -> 1665 lines = [*self._get_lines(*args, data=data, **kwargs)]  1666 for line in lines:  1667 self.add_line(line) /usr/lib/python3/dist-packages/matplotlib/axes/_base.py in __call__(self, *args, **kwargs)  223 this += args[0],  224 args = args[1:] --> 225 yield from self._plot_args(this, kwargs)  226   227 def get_next_color(self): /usr/lib/python3/dist-packages/matplotlib/axes/_base.py in _plot_args(self, tup, kwargs)  389 x, y = index_of(tup[-1])  390  --> 391 x, y = self._xy_from_xy(x, y)  392   393 if self.command == 'plot': /usr/lib/python3/dist-packages/matplotlib/axes/_base.py in _xy_from_xy(self, x, y)  267 y = _check_1d(y)  268 if x.shape[0] != y.shape[0]: --> 269 raise ValueError("x and y must have same first dimension, but "  270 "have shapes {} and {}".format(x.shape, y.shape))  271 if x.ndim > 2 or y.ndim > 2: ValueError: x and y must have same first dimension, but have shapes (287,) and (278,) ValueError: x and y must have same first dimension, but have shapes (287,) and (278,)