Peanuts, perhaps, in container with hole in it (7)
I believe the answer is:
cartoon
'it' is the definition.
The definition suggests a singular noun which matches the answer.
'peanuts perhaps in container with hole' is the wordplay.
I cannot really understand how this works, but
'container' could be 'cart' (cart is a kind of container) and 'cart' is found in the answer.
'hole' could be 'o' and 'o' is located in the answer.
The remaining letters 'on' is a valid word which might be clued in a way I don't see.
This may be the basis of the clue (or it may be nonsense).
'in' is the link.
Can you help me to learn more?
(Other definitions for cartoon that I've seen before include "Comical drawing" , "eg 'The Simpsons'" , "Humorous drawing or film of a succession of them" , "Witty drawing" , "Humorous sketch" .)