A high-fat, low-carbohydrate ketogenic diet could help improve how the pancreas functions in people with type 2 diabetes, according to a new study.