treebeardtech / nbmake

📝 Pytest plugin for testing notebooks
https://pypi.org/project/nbmake/
Apache License 2.0
184 stars 18 forks source link

Running nbmake with specific kernel from CLI #57

Closed lamesjaidler closed 2 years ago

lamesjaidler commented 2 years ago

Hi,

I've noticed that when running nbmake on a notebook, it'll use the kernelspec that has been saved in the metadata of the notebook. However, I have two kernels for a project that I'm working on - one with Spark installed, one without - so I'd like to be able to specify the kernel I want to use when running nbmake, without having to manually change the metadata of the notebook each time. Is this already possible? If not, can this feature be added?

alex-treebeard commented 2 years ago

Hi @lamesjaidler this is not already possible but is a great idea. I May look at this in the next couple of weeks.

alex-treebeard commented 2 years ago

Released in 1.1, feedback welcome!

https://github.com/treebeardtech/nbmake#override-notebook-kernels-when-testing

lamesjaidler commented 2 years ago

Works perfectly, thanks!