write to specific notebook

write to a specific notebook, not default notebook.