Is there a way to export some variables and functions and require them in a different notebook?
(Sorry if this is in the docs, just haven’t spotted it.)
Is there a way to export some variables and functions and require them in a different notebook?
(Sorry if this is in the docs, just haven’t spotted it.)
I should also say, if you publish the notebook the require path will look a little nicer. 
That’s so fantastic, thanks @me1000! (I had just neglected to add branches/ - makes perfect sense)
This should really be in the documentation (if it is it isn’t very prominent, I wasn’t able to find it), and because it’s so darned useful, it should be in the bullet list below the code editor as well
A simple oneliner in the bullet list:
module.export in your documents, and then import them with require('@runkit/username/published_document_id')