Dear Claudio,
If you publish a notebook in the Jupyter Notebook Viewer, the site will only render your notebook, but it will not run it. So it does not really matter if the notebook is not complete and it uses some module whose code is not in that notebook.
If you want the boilerplate code to be accessible too, you can include a link to that boilerplate code (e.g. a python module on github, or another notebook on Jupyter Notebook Viewer) from a markdown cell of the first notebook.