diff --git a/examples/PySDM_examples/Arabas_et_al_2015/paraview_hello_world.ipynb b/examples/PySDM_examples/Arabas_et_al_2015/paraview_hello_world.ipynb index 1485c06de..5c8a77460 100644 --- a/examples/PySDM_examples/Arabas_et_al_2015/paraview_hello_world.ipynb +++ b/examples/PySDM_examples/Arabas_et_al_2015/paraview_hello_world.ipynb @@ -196,17 +196,16 @@ "pvs.SaveAnimation('output/anim.ogv', view, FrameRate=10)\n", "\n", "# save animation frame as pdfs\n", - "exporters = pvs.servermanager.createModule('exporters')\n", - "exporter = exporters.GL2PSRenderViewExporterPDF()\n", - "exporter.Rasterize3Dgeometry = False\n", - "exporter.GL2PSdepthsortmethod = 'BSP sorting (slow, best)'\n", "for t in reader_prod.TimestepValues:\n", " view.ViewTime = t\n", " for reader in (reader_prod, reader_attr):\n", - " reader.UpdatePipeline(t)\n", - " exporter.SetView(view)\n", - " exporter.FileName = f'output/anim_frame_{t}.pdf'\n", - " exporter.Write()" + " reader.UpdatePipeline(t) \n", + " pvs.ExportView(\n", + " filename=f'output/anim_frame_{t}.pdf',\n", + " view=view,\n", + " Rasterize3Dgeometry= False,\n", + " GL2PSdepthsortmethod= 'BSP sorting (slow, best)',\n", + " )" ] }, {