Questions tagged [pycall]
54 questions
0
votes
1 answer
Local module not found with PyCall in ruby on rails
I'm trying to call a python function in a file in my ruby on rails application.
My python file is located at project_dir/lib/assets/python/the_file.py
I'm utilizing PyCall for ruby with the lines:
require…

Benjamin Kim
- 3
- 2
0
votes
1 answer
Post API in Julia when the input is a JSON
I'm trying to access the TexSmart HTTP API https://ai.tencent.com/ailab/nlp/texsmart/en/api.html , where the input text is a dictionary matching the following structure:
Dict("str" => "text you want to analyze",
"options"=> Dict( …

Ethan Leonard
- 37
- 5
0
votes
1 answer
Utilizing Scikit-learn with Python3.11 path in Julia
I'm trying to perform some benchmarking in clustering by various frameworks, But in the case of porting Scikit-learn from python to julia, I can't make it even work. Here is the code:
using PyCall
Train = rand(Float64, 1611, 10)
py"""
def…

Shayan
- 5,165
- 4
- 16
- 45
0
votes
1 answer
PyPlot problems when building with Julia
I am having problems building PyCall in Julia (I am using a Mac). I have the message:
julia> Pkg.build("PyCall")
Building Conda ─→ ~/.julia/packages/Conda/3rPhK/deps/build.log
Building PyCall → ~/.julia/packages/PyCall/BcTLp/deps/build.log
┌ Error:…

ymg
- 13
- 2
0
votes
0 answers
How can Julia stdout be redirected to IPython console?
I am using PyJulia to call a Julia function in a Python script. The Julia function is a simulation which continuously prints to stdout, updating a progress bar and some debugging information as it runs. When I run the script in Spyder, Julia's…

lukor
- 3
- 4
0
votes
1 answer
How do i convert a SymPy expression into polynomials?
I want to change a SymPy expression, for example x+y ( x=symbols("x") and the same thing for y), into a polynomial, and then get the generators of this polynomial and the length of this polynomial.
I've tried
op=x+y
op =…

Marouane1994
- 534
- 3
- 11
0
votes
1 answer
PyCall builds but nothing works
After building and precompiling PyCall, I tried out some of the example code to just verify its functionality. Unfortunately I'm met with errors straight away.
julia> import Pkg
julia> Pkg.build("PyCall")
Building Conda ─→…

user3303504
- 525
- 3
- 20
0
votes
1 answer
Get alpha-shape (concave hull) of a set of points using Julia
I want to compute the alpha-shape (or even only the concave hull) of a set of points using Julia. In other questions they have solved this problem in python by using Delaunay tesselation Boundary enclosing a given set of points .
This package in…

RM-
- 986
- 1
- 13
- 30
0
votes
2 answers
Julia pandas - how to append dataframes together
Working with Julia 1.0
I have a large numbers of data frames which I read into Julia using pandas (read_csv) and I am looking for a way to append them all together into a single big data frame. For some reason the "append" function does not do the…

user9894926
- 23
- 1
- 6