Skip to content

Commit

Permalink
Removed 'replace' from KernelSpecManager() call
Browse files Browse the repository at this point in the history
  • Loading branch information
ticoneva committed Aug 11, 2022
1 parent 397dca4 commit 8c23671
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ __pycache__/
/dist/
/build/
/MANIFEST
/pystata_kernel.egg-info
/pystata-kernel-*
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ Settings must be under the title `[pystata-kernel]`. Example:
stata_dir = /opt/stata
edition = mp
graph_format = svg
echo = True
```

### Default Graph Format
Expand Down
2 changes: 1 addition & 1 deletion pystata-kernel/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = '0.1.17'
__version__ = '0.1.18'

from .kernel import PyStataKernel
3 changes: 2 additions & 1 deletion pystata-kernel/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def install_my_kernel_spec(user=True, prefix=None):
copyfile(logo_path, os.path.join(td, 'logo-64x64.png'))

print('Installing Jupyter kernel spec')
KernelSpecManager().install_kernel_spec(td, 'pystata', user=user, replace=True, prefix=prefix)
KernelSpecManager().install_kernel_spec(td, 'pystata', user=user, prefix=prefix)

def install_conf(conf_file,gen_file=False):
"""
Expand All @@ -55,6 +55,7 @@ def install_conf(conf_file,gen_file=False):
stata_dir = {}
edition = {}
graph_format = png
echo = False
""".format(stata_dir,stata_ed))

if gen_file:
Expand Down
4 changes: 2 additions & 2 deletions pystata-kernel/kernel.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'''
pystata-kernel
Version: 0.1.17
Version: 0.1.18
A simple Jupyter kernel based on pystata.
Requires Stata 17 and stata_setup.
'''
Expand All @@ -11,7 +11,7 @@

class PyStataKernel(IPythonKernel):
implementation = 'pystata-kernel'
implementation_version = '0.1.17'
implementation_version = '0.1.18'
language = 'stata'
language_version = '17'
language_info = {
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name='pystata-kernel',
version='0.1.17',
version='0.1.18',
packages=['pystata-kernel'],
package_data={'pystata-kernel': ['logo-64x64.png']},
description='A simple Jupyter kernel for Stata based on pystata',
Expand Down

0 comments on commit 8c23671

Please sign in to comment.