question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request : hide function name of special type in "Variables"

See original GitHub issue

Thank you for you great works.

I would like to have the ability to hide the name of the function of special type in “Variables.”

If I import the function below, the function name is specified in the variable window.

from numpy import (array, zeros, arange, conj, deg2rad, rad2deg, conj, exp,
                   sqrt)
from scipy.special import sindg, cosdg, tandg
from numpy import (cos, sin, tan, arcsin, arccos, arctan)
from numpy.random import randn, standard_normal, randint, choice, uniform

스크린샷, 2020-02-09 19-42-08

I am using APERL(1.0.20), python(3.7.4), windows10.

Thank you again. 👍

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Almenoncommented, Feb 13, 2020

I just added the ability to filter custom types in the backend 😃

Once I do a new release you should be able to use a new variable arepl_filter_type to filter out types. I’ll also add in a GUI setting so you don’t have to write up the type filters each time.

As a bonus I also created a super-powerful arepl_filter_function. userVariables is passed into it and you are free to do whatever you want with it before returning it 🚀

1reaction
Almenoncommented, Feb 9, 2020

I’ll look into this - in the meantime you can use the special var arepl_filter as a (less than ideal) temporary solution. It will filter out all the variables specified from the display.

from numpy import (array, zeros, arange, conj, deg2rad, rad2deg, exp, sqrt)
from numpy import (cos, sin, tan, arcsin, arccos, arctan)
from numpy.random import randn, standard_normal, randint, choice, uniform

arepl_filter = ["array", "zeros", "arange", "conj", "deg2rad", "rad2deg", "exp", "sqrt", "cos", "sin", "tan", "arcsin", "arccos", "arctan", "randn", "standard_normal", "randint", "choice", "uniform"]

you_should_only_see_this_variable_now = "hello world"
Read more comments on GitHub >

github_iconTop Results From Across the Web

Hiding variable names in function definitions
This is a good feature to know about, but it appears that they can be subject to substitution rules. From you link: "Specific...
Read more >
Hidden Gems: Requested For Variable Type - ServiceNow
The 'Requested for' variable type forms part of the delegated request ... It adds some extra functionality to Catalog item forms.
Read more >
Inlay hints | ReSharper Documentation - JetBrains
If you want inlay hints to be always shown or hidden, you can choose ... Type name hints help you understand types variables...
Read more >
Toggle Show/Hide Empty Variables - - ServiceNowScholar
This article teaches you how to show or hide empty variables to within your variable ... Name your new form section Variables and...
Read more >
Variable scope, closure - The Modern JavaScript Tutorial
A closure is a function that remembers its outer variables and can access them. In some languages, that's not possible, or a function...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found