That in theory shouldn't be too bad. Though, there have been some things like %sql I remember using in one notebook, which was essentially a macro for making a datatable from a SQL expression, but it wasn't something you could just copy directly.