Skip to content

Commit 03a093e

Browse files
committed
Rename: replhelper -> ipython_jl
1 parent 65d0145 commit 03a093e

15 files changed

Lines changed: 22 additions & 22 deletions

src/convenience.jl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -147,18 +147,18 @@ function install_dependency(package; force=false, dry_run=false)
147147
end
148148

149149

150-
function test_replhelper(args=``; inprocess=false, kwargs...)
150+
function test_ipython_jl(args=``; inprocess=false, kwargs...)
151151
if inprocess
152-
test_replhelper_inprocess(args; kwargs...)
152+
test_ipython_jl_inprocess(args; kwargs...)
153153
else
154-
test_replhelper_cli(args)
154+
test_ipython_jl_cli(args)
155155
end
156156
end
157157

158-
function test_replhelper_inprocess(args; revise=true, check=true)
159-
IPython._start_ipython(:ipython_options) # setup replhelper.core._Main
158+
function test_ipython_jl_inprocess(args; revise=true, check=true)
159+
IPython._start_ipython(:ipython_options) # setup ipython_jl.core._Main
160160
if revise
161-
pyimport("replhelper")[:revise]()
161+
pyimport("ipython_jl")[:revise]()
162162
end
163163
cd(@__DIR__) do
164164
code = pyimport("pytest")[:main](collect(args))
@@ -171,7 +171,7 @@ function test_replhelper_inprocess(args; revise=true, check=true)
171171
end
172172
end
173173

174-
function test_replhelper_cli(args)
174+
function test_ipython_jl_cli(args)
175175
command = `$(PyCall.pyprogramname) -m pytest $args`
176176
@info command
177177
cd(@__DIR__) do

src/core.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ julia_exepath() =
66
Base.julia_exename())
77

88
function _start_ipython(name; kwargs...)
9-
pyimport("replhelper")[name](;
9+
pyimport("ipython_jl")[name](;
1010
eval_str = JuliaAPI.eval_str,
1111
api = JuliaAPI,
1212
kwargs...)
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -105,31 +105,31 @@ def revise():
105105

106106
Main = _Main
107107

108-
import replhelper
109-
reload(replhelper.core)
108+
import ipython_jl
109+
reload(ipython_jl.core)
110110

111111
if Main is not None:
112-
Main.__class__ = replhelper.core.JuliaNameSpace
113-
Main._JuliaNameSpace__julia.__class__ = replhelper.core.JuliaAPI
114-
replhelper.core._Main = Main
112+
Main.__class__ = ipython_jl.core.JuliaNameSpace
113+
Main._JuliaNameSpace__julia.__class__ = ipython_jl.core.JuliaAPI
114+
ipython_jl.core._Main = Main
115115

116116
try:
117-
replhelper.ipyext
117+
ipython_jl.ipyext
118118
except AttributeError:
119119
pass
120120
else:
121-
reload(replhelper.ipyext)
121+
reload(ipython_jl.ipyext)
122122

123123
try:
124-
replhelper.tests
124+
ipython_jl.tests
125125
except AttributeError:
126126
return
127127

128-
# *Try* reloading modules `replhelper.tests.*`. If there are
128+
# *Try* reloading modules `ipython_jl.tests.*`. If there are
129129
# dependencies between those modules, it's not going to work.
130-
for (name, module) in sorted(vars(replhelper.tests).items(),
130+
for (name, module) in sorted(vars(ipython_jl.tests).items(),
131131
key=lambda pair: pair[0]):
132132
if isinstance(module, types.ModuleType):
133133
reload(module)
134134

135-
reload(replhelper)
135+
reload(ipython_jl)

0 commit comments

Comments
 (0)