JuliaDebug / JuliaDebug/CodeTracking.jl

"definition" cannot read function defined within Jupyter notebook

Open
#51 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement help wanted
Dominant language
Julia
Stars
150
Forks
11
Avg merge
22m
Merged PRs (30d)
1

Description

When calling definition in a Jupyter notebook:

f(x,y) = x^2 + y^2
definition(String, @which(f(Int,Int)))

I get the following error:
SystemError: opening file "In[52]": No such file or directory

Seems to just not handled reading from the notebook's In because it works when reading from functions defined purely in the REPL.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Julia reproducer in the issue and trace the definition call for a method defined in a Jupyter notebook. Inspect how notebook In[...] locations are read and compare that path with functions defined in the REPL. Done means the reproducer returns the function definition without trying to open In[52] as a file.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia, jupyter
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.