-
Notifications
You must be signed in to change notification settings - Fork 25
Migrating from the old to the new cookbook
Andrew Kiss edited this page Jul 29, 2019
·
8 revisions
The cookbook in analysis3-19.04
and later is not compatible with previous versions. This page lists some of the changes needed to migrate old notebooks to the new cookbook.
If you don't want to change your notebooks, you'll need to use the old cookbook, which is currently only available via the analysis3-19.01
kernel. However this will not be available forever, so you should consider switching to the new cookbook.
The cookbook in analysis3-19.04
has some problems, so analysis3-19.07
or later is recommended.
To use the new cookbook in your jupyter notebook,
- Switch to the
analysis3-19.07
kernel (or later). - Add
session = cc.database.create_session()
somewhere near the beginning of the notebook (before any othercc.*
commands). - Replace
cc.get_nc_variable
withcc.querying.getvar
, addsession
as the third argument, insertncfile=
before the .nc filename argument (or remove the .nc filename argument, though this could potentially cause problems), and also remove anyop
,use_bag
oruse_cache
arguments.