I have a Scala notebook, but now I want the default programming language for a new cell to be Python instead. Is it possible to change the notebook in that way (preferably, in a way that doesn't require manual changing of each of the existing cells)? Thanks
You can change the default language of a Notebook by selecting File -> Change default cell language.
See also Set default language
As mentioned in other comments, it is possible to change the language of a single cell by using so called magic commands: %<language>
See also Mixed languages.
But they have some disadvantages e.g. you can't share variables between the different languages you use.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With