Fix handling of ans and stop printing cwd in notebook