Check this post:
Basically let jupyter traffic go through ssh. And I guess this is also more secure way.