JuliaPy / JuliaPy/PyCall.jl

Control-C exits Julia after pylab.plot()

Ouverte
#35 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Julia
Étoiles
1.5k
Forks
186
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

After the wx event loop gets started, SIGINT kills the Julia repl instead of interrupting the currently executing command. To reproduce:

``` julia
julia> using PyCall

julia> @pylab

julia> pylab.plot(1);
```

At this point, if I close the plot and press ^C, Julia exits.

In the IPython source, it says that [wx resets the SIGINT handler when it's loaded](https://github.com/ipython/ipython/blob/master/IPython/lib/inputhookwx.py#L120), so I tried running `ccall(:jl_install_sigint_handler, Void, ())` the first time `app.o != pynothing` in [gui.jl](https://github.com/stevengj/PyCall.jl/blob/master/src/gui.jl#L98). This is an improvement, in that ^C now works if something is running, but something is still off, since ^C without anything running exits Julia instead of returning to the prompt.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.