This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/packages/python/yap_kernel/jupyter.yap

19 lines
281 B
Plaintext
Raw Normal View History

2016-09-27 18:28:54 +01:00
:- use_module(library(python)).
2016-08-22 05:31:21 +01:00
:- if( current_prolog_flag(apple, true) ).
2016-08-25 07:26:11 +01:00
:- putenv( 'LC_CTYPE', 'en_us:UTF-8').
plot_inline :-
X := self.inline_plotting,
nb_setval(inline, X ),
X = true,
!,
:= (
import( matplotlib ),
matplotlib.use( `nbagg` )
).
2016-08-22 05:31:21 +01:00
:- endif.