This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using PyCall | |
function pyeval_impl(source, globals, locals, lnn, mode) | |
parse = pyimport("ast")[:parse] | |
increment_lineno = pyimport("ast")[:increment_lineno] | |
eval = pyimport("builtins")[:eval] | |
compile = pyimport("builtins")[:compile] | |
if lnn === nothing | |
filename = "<PyCall>" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from ctypes import c_char_p, c_void_p | |
import ctypes | |
import os | |
import subprocess | |
def juliainfo(): | |
out = subprocess.check_output( | |
["julia", "-e", """ | |
using Libdl |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#= | |
exec julia --color=yes --startup-file=no -e "include(popfirst!(ARGS))" \ | |
"${BASH_SOURCE[0]}" "$@" | |
=# | |
@show ARGS # put any Julia code here |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# -*- mode: julia -*- | |
#= | |
exec julia --color=yes --startup-file=no -e "include(popfirst!(ARGS))" \ | |
"${BASH_SOURCE[0]}" "$@" | |
=# | |
@show ARGS # put any Julia code here |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
signal (11): Segmentation fault | |
in expression starting at no file:0 | |
jl_compile_linfo at /buildworker/worker/package_linux64/build/src/codegen.cpp:1191 | |
emit_invoke at /buildworker/worker/package_linux64/build/src/codegen.cpp:3094 | |
emit_expr at /buildworker/worker/package_linux64/build/src/codegen.cpp:3893 | |
emit_ssaval_assign at /buildworker/worker/package_linux64/build/src/codegen.cpp:3615 | |
emit_stmtpos at /buildworker/worker/package_linux64/build/src/codegen.cpp:3801 [inlined] | |
emit_function at /buildworker/worker/package_linux64/build/src/codegen.cpp:6254 | |
jl_compile_linfo at /buildworker/worker/package_linux64/build/src/codegen.cpp:1159 | |
emit_invoke at /buildworker/worker/package_linux64/build/src/codegen.cpp:3094 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
venv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.pyc | |
.pytest_cache |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from ctypes import c_char_p, c_void_p | |
import ctypes | |
import os | |
import subprocess | |
def juliainfo(): | |
out = subprocess.check_output( | |
["julia", "-e", """ | |
using Libdl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from contextlib import contextmanager | |
import os | |
import signal | |
import threading | |
import time | |
from julia.core import Julia | |
@contextmanager |