Skip to content

PythonCall not working in Jupyter Notebook in VSCode #601

Closed
@AquaPore

Description

@AquaPore

Affects: PythonCall

Describe the bug
The PythonCall is not working in Jupyter Notebook in VScode.

The answer to fib(100) problem see below is nothing. Nevertheless the code works beautifully in REPL.

Many thanks for any help you may provide.

Your system
Please provide detailed information about your system:

  • The operating system: Windows 10
  • The version of Julia, Python, PythonCall, JuliaCall: latest

Additional context

using PythonCall

fib(x) = pyexec("""
def fib(n):
	a, b = 0, 1
	while a < n:
		print(a, end=' ')
		a, b = b, a+b
	print()
fib(y)
""", Main, (y=x,))

print(fib(10))

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions