-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Facilitate Jupyter testing with nbmake #418
Conversation
CC @bnmajor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! Thanks!
else: | ||
# nbmake | ||
self.kernel_id = Path(connection_file).stem | ||
print('kernel_id', self.kernel_id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to keep the print statement here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, no! :-)
Could you please run |
With nbmake, the connection file is a temp file such as '/tmp/tmpabc123.json'. Use the name of this file for the kernel id in this case.
Yes, done 👍 Could we please get a release with this? It will help us get started on testing 💚 |
Great!
Yes, the CI will make the release if we change the version number in 3 places (VERSION file, pakcage.json and pakcage-lock.json). |
@oeway awesome, thanks! |
connection_file = ipykernel.connect.get_connection_file() | ||
if "kernel-" in connection_file: | ||
self.kernel_id = re.search( | ||
"kernel-(.*).json", ipykernel.connect.get_connection_file() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we not use connection_file
here in the re.search
call?
With nbmake, the connection file is a temp file such as '/tmp/tmpabc123.json'. Use the name of this file for the kernel id in this case.