Skip to content

Use tempfile instead of IPython to get a temp dir. #47

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions jupyter_c_kernel/install_c_kernel
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/usr/bin/env python

import argparse
import json
import os
import sys
import argparse
from tempfile import TemporaryDirectory

from jupyter_client.kernelspec import KernelSpecManager
from IPython.utils.tempdir import TemporaryDirectory

kernel_json = {
"argv": [
Expand All @@ -28,7 +28,7 @@ def install_my_kernel_spec(user=True, prefix=None):
json.dump(kernel_json, f, sort_keys=True)
# TODO: Copy resources once they're specified

print('Installing IPython kernel spec')
print('Installing C kernel spec')
KernelSpecManager().install_kernel_spec(td, 'c', user=user, replace=True, prefix=prefix)


Expand Down