# \#python

**URL:** https://forum.alternetsoft.com/tag/python/7.md

[Latest](https://forum.alternetsoft.com/latest.md) · [Categories](https://forum.alternetsoft.com/categories.md) · [Tags](https://forum.alternetsoft.com/tags.md)

---

## [PythonNET unknown kwargs being discarded](https://forum.alternetsoft.com/t/pythonnet-unknown-kwargs-being-discarded/454)

<div class="topic-metadata">

**Author:** [@Hamish](https://forum.alternetsoft.com/u/Hamish)\
**Replies:** 9\
**Last updated:** [May 7, 2025, 4:47am UTC](https://forum.alternetsoft.com/t/pythonnet-unknown-kwargs-being-discarded/454 "2025-05-07T04:47:29Z")

</div>

Hi, When accessing a .NET function using PythonNET bindings I noticed that if a kwarg is incorrect or doesn’t exist it is discarded by the PythonNET parser. For example If I have a .NET function like this: Public Func…

---

## [Custom syntax highlighting for PythonNETParser](https://forum.alternetsoft.com/t/custom-syntax-highlighting-for-pythonnetparser/458)

<div class="topic-metadata">

**Author:** [@Hamish](https://forum.alternetsoft.com/u/Hamish)\
**Replies:** 7\
**Last updated:** [June 18, 2024, 5:50am UTC](https://forum.alternetsoft.com/t/custom-syntax-highlighting-for-pythonnetparser/458 "2024-06-18T05:50:51Z")

</div>

Hi, We’re using the PythonNETParser alongside PythonNET to provide a editor (DebugCodeEdit) in our application. Are we able to pass in specific keywords that we want highlighted? Similar to how Python keywords are high…

---

## [PythonNET parser has incorrect py3 syntax errors](https://forum.alternetsoft.com/t/pythonnet-parser-has-incorrect-py3-syntax-errors/455)

<div class="topic-metadata">

**Author:** [@Hamish](https://forum.alternetsoft.com/u/Hamish)\
**Replies:** 5\
**Last updated:** [May 23, 2024, 3:04am UTC](https://forum.alternetsoft.com/t/pythonnet-parser-has-incorrect-py3-syntax-errors/455 "2024-05-23T03:04:03Z")

</div>

Hi, When using the lambda python keyword the PythonNETParser/TextEditor is incorrectly highlighting these as syntax errors.

---

## [Stack overflows in Python seem to kill the demo apps](https://forum.alternetsoft.com/t/stack-overflows-in-python-seem-to-kill-the-demo-apps/456)

<div class="topic-metadata">

**Author:** [@nathan.vonada](https://forum.alternetsoft.com/u/nathan.vonada)\
**Replies:** 6\
**Last updated:** [May 22, 2024, 7:19am UTC](https://forum.alternetsoft.com/t/stack-overflows-in-python-seem-to-kill-the-demo-apps/456 "2024-05-22T07:19:10Z")

</div>

I set up a test doing a recursive function call to trigger a stack overflow. cnt = 0 def MyFunction(message, x, y): global cnt cnt = cnt + 1 MyFunction(message + str(cnt), x + 1, y + 1) print ("Starting…

---

## [How to find the line number where an exception has occurred for embedded Python interpreter](https://forum.alternetsoft.com/t/how-to-find-the-line-number-where-an-exception-has-occurred-for-embedded-python-interpreter/446)

<div class="topic-metadata">

**Author:** [@Hamish](https://forum.alternetsoft.com/u/Hamish)\
**Replies:** 2\
**Last updated:** [April 11, 2024, 12:01am UTC](https://forum.alternetsoft.com/t/how-to-find-the-line-number-where-an-exception-has-occurred-for-embedded-python-interpreter/446 "2024-04-11T00:01:37Z")

</div>

Hi, We have recently switched over our python implementation from IronPython to the embedded Python installation. Previously we were using the solution provided on this forum for finding the line number by calling Engin…

---

## [Can we do Python callbacks from the host application?](https://forum.alternetsoft.com/t/can-we-do-python-callbacks-from-the-host-application/453)

<div class="topic-metadata">

**Author:** [@nathan.vonada](https://forum.alternetsoft.com/u/nathan.vonada)\
**Replies:** 2\
**Last updated:** [April 3, 2024, 12:22pm UTC](https://forum.alternetsoft.com/t/can-we-do-python-callbacks-from-the-host-application/453 "2024-04-03T12:22:11Z")

</div>

In our application, we would like Python code to pass a callback into the host application’s API which would then be called by the host application. I have been experimenting with ScriptRun.RunFunction() using the CallM…

---

## [Launch debugger when breakpoint is hit during python script execution](https://forum.alternetsoft.com/t/launch-debugger-when-breakpoint-is-hit-during-python-script-execution/361)

<div class="topic-metadata">

**Author:** [@magicband](https://forum.alternetsoft.com/u/magicband)\
**Replies:** 6\
**Last updated:** [September 14, 2023, 11:25am UTC](https://forum.alternetsoft.com/t/launch-debugger-when-breakpoint-is-hit-during-python-script-execution/361 "2023-09-14T11:25:34Z")

</div>

Our team currently uses the Alternet Scripter to run our Python code. We use the ScriptRun.RunFunction() method to run the code starting at a specific function. Our workflow that we would like to achieve is the followin…

---

## [Javascript GetSyntaxErrors on WINFORMS](https://forum.alternetsoft.com/t/javascript-getsyntaxerrors-on-winforms/416)

<div class="topic-metadata">

**Author:** [@dave](https://forum.alternetsoft.com/u/dave)\
**Replies:** 1\
**Last updated:** [August 31, 2023, 7:48am UTC](https://forum.alternetsoft.com/t/javascript-getsyntaxerrors-on-winforms/416 "2023-08-31T07:48:57Z")

</div>

it seems that the parser method GetSyntaxErrors doesnt recognize javascript error code. How can I validate an editor with javascript Code? thank you Davide

---

## [License File - Application Distribution](https://forum.alternetsoft.com/t/license-file-application-distribution/411)

<div class="topic-metadata">

**Author:** [@AlexIuspa](https://forum.alternetsoft.com/u/AlexIuspa)\
**Replies:** 1\
**Last updated:** [August 12, 2023, 12:24pm UTC](https://forum.alternetsoft.com/t/license-file-application-distribution/411 "2023-08-12T12:24:34Z")

</div>

I am getting the .licx file from the demos and copy over my project. the license was activated, however when I distribute my application still pops up the AlterNet trial version UI. I place the .licx file under the prope…

---

## [Numpy Panda Intellisense](https://forum.alternetsoft.com/t/numpy-panda-intellisense/401)

<div class="topic-metadata">

**Author:** [@AlexIuspa](https://forum.alternetsoft.com/u/AlexIuspa)\
**Replies:** 1\
**Last updated:** [June 30, 2023, 4:41am UTC](https://forum.alternetsoft.com/t/numpy-panda-intellisense/401 "2023-06-30T04:41:41Z")

</div>

Hello, Do you know when the Python editor will support intellisense for 3rd party packages such as Numpy and Panda? It is working for standard modules distributed with Python. I think that a must a feature to have since…

---

## [Python TextEditor - Inconsistent use of space and tab error](https://forum.alternetsoft.com/t/python-texteditor-inconsistent-use-of-space-and-tab-error/398)

<div class="topic-metadata">

**Author:** [@AlexIuspa](https://forum.alternetsoft.com/u/AlexIuspa)\
**Replies:** 2\
**Last updated:** [May 25, 2023, 2:50pm UTC](https://forum.alternetsoft.com/t/python-texteditor-inconsistent-use-of-space-and-tab-error/398 "2023-05-25T14:50:53Z")

</div>

I am running into a case where the editor complains about the Inconsistent use of space and tab , however at the editor level the code looks well indented. Do you know how to avoid / suppress this issue? Thanks, Ale…

---

## [Python Intellisense](https://forum.alternetsoft.com/t/python-intellisense/393)

<div class="topic-metadata">

**Author:** [@AlexIuspa](https://forum.alternetsoft.com/u/AlexIuspa)\
**Replies:** 4\
**Last updated:** [April 18, 2023, 2:38am UTC](https://forum.alternetsoft.com/t/python-intellisense/393 "2023-04-18T02:38:49Z")

</div>

When passing an object as parameter, I dont see any intellisense e.g def test(myCar ): myCar. MyCar should list two properties. however MyCar seems to be of another type. I even registered myCar as a global item Now …

---

## [Python - Numpy Library](https://forum.alternetsoft.com/t/python-numpy-library/389)

<div class="topic-metadata">

**Author:** [@AlexIuspa](https://forum.alternetsoft.com/u/AlexIuspa)\
**Replies:** 5\
**Last updated:** [April 13, 2023, 11:43pm UTC](https://forum.alternetsoft.com/t/python-numpy-library/389 "2023-04-13T23:43:44Z")

</div>

I have Python 38 installed and I have numpy as well. When importing numpy I ran into two issues: No intellisense Fails to compile I’ve included in the search path the path to my python location. BTW, I am using the P…

---

## [Custom Code Completion](https://forum.alternetsoft.com/t/custom-code-completion/390)

<div class="topic-metadata">

**Author:** [@AlexIuspa](https://forum.alternetsoft.com/u/AlexIuspa)\
**Replies:** 3\
**Last updated:** [April 13, 2023, 11:40pm UTC](https://forum.alternetsoft.com/t/custom-code-completion/390 "2023-04-13T23:40:07Z")

</div>

How can I customize code completion? For instance, when I type api.parameters\[\] , I need to present a list of keys for the parameters dictionary. Thanks, Alex Iuspa

---

## [Python - Intellisense](https://forum.alternetsoft.com/t/python-intellisense/366)

<div class="topic-metadata">

**Author:** [@AlexIuspa](https://forum.alternetsoft.com/u/AlexIuspa)\
**Replies:** 1\
**Last updated:** [February 6, 2023, 12:07pm UTC](https://forum.alternetsoft.com/t/python-intellisense/366 "2023-02-06T12:07:02Z")

</div>

When importing one of my .NET Assemblies , intellisense does not show the methods in the Assembly. However works for windows one : This is my code import clr import sys clr.AddReference(‘System.Windows.Forms’) from S…

---

## [ScriptCodeEdit Cant display line numbers on gutter](https://forum.alternetsoft.com/t/scriptcodeedit-cant-display-line-numbers-on-gutter/364)

<div class="topic-metadata">

**Author:** [@AlexIuspa](https://forum.alternetsoft.com/u/AlexIuspa)\
**Replies:** 1\
**Last updated:** [January 27, 2023, 5:44am UTC](https://forum.alternetsoft.com/t/scriptcodeedit-cant-display-line-numbers-on-gutter/364 "2023-01-27T05:44:34Z")

</div>

I need to show the line number on the code editor, ScriptCodeEdit but I cant find a way to accomplish though. Can you help?

---

## [Clicking the "Locals" tab just hangs when using tkinter](https://forum.alternetsoft.com/t/clicking-the-locals-tab-just-hangs-when-using-tkinter/324)

<div class="topic-metadata">

**Author:** [@Tetsu](https://forum.alternetsoft.com/u/Tetsu)\
**Replies:** 1\
**Last updated:** [August 25, 2022, 2:11pm UTC](https://forum.alternetsoft.com/t/clicking-the-locals-tab-just-hangs-when-using-tkinter/324 "2022-08-25T14:11:55Z")

</div>

Here’s the repro steps: Install tkinter to the embedded Python folder. Run the Debbuger Integration - Python demo and put the following code: from tkinter import \* ws = Tk() ws.title('PythonGuides') ws.geometry('300x…

---

## [How to run matplotlib python script?](https://forum.alternetsoft.com/t/how-to-run-matplotlib-python-script/315)

<div class="topic-metadata">

**Author:** [@Tetsu](https://forum.alternetsoft.com/u/Tetsu)\
**Replies:** 18\
**Last updated:** [August 22, 2022, 2:54pm UTC](https://forum.alternetsoft.com/t/how-to-run-matplotlib-python-script/315 "2022-08-22T14:54:21Z")

</div>

Hi, I modified PythonDapDebugger.Wpf.MainWindow.SetupPython() method so that the sample program can recognize the installed Python. When I started the sample program and clicked the Run button, I got the following excep…

---

## [Does the Python debugger support breakpoints set in a different thread?](https://forum.alternetsoft.com/t/does-the-python-debugger-support-breakpoints-set-in-a-different-thread/323)

<div class="topic-metadata">

**Author:** [@Tetsu](https://forum.alternetsoft.com/u/Tetsu)\
**Replies:** 2\
**Last updated:** [August 22, 2022, 2:53pm UTC](https://forum.alternetsoft.com/t/does-the-python-debugger-support-breakpoints-set-in-a-different-thread/323 "2022-08-22T14:53:46Z")

</div>

It appears that the answer is no. But I wanted to make sure that it is the case. To reproduce the issue, run the Debbuger Integration - Python demo and put the following code: import time import threading from queue im…

---

## [How do I inject C# object to Python code?](https://forum.alternetsoft.com/t/how-do-i-inject-c-object-to-python-code/316)

<div class="topic-metadata">

**Author:** [@Tetsu](https://forum.alternetsoft.com/u/Tetsu)\
**Replies:** 10\
**Last updated:** [August 9, 2022, 3:13pm UTC](https://forum.alternetsoft.com/t/how-do-i-inject-c-object-to-python-code/316 "2022-08-09T15:13:48Z")

</div>

Hi, I have been using Python.net to run a Python script from a C# WPF app. C# code injects necessary C# objects by using “PyScope.Set(variable name, object.ToPython)()” like so: const string Script = "import matplotlib…

---

## [Is it possible to add an "Immediate Window" tab to DebuggerPanelsTabControl where Python REPL works?](https://forum.alternetsoft.com/t/is-it-possible-to-add-an-immediate-window-tab-to-debuggerpanelstabcontrol-where-python-repl-works/320)

<div class="topic-metadata">

**Author:** [@Tetsu](https://forum.alternetsoft.com/u/Tetsu)\
**Replies:** 2\
**Last updated:** [August 3, 2022, 5:19pm UTC](https://forum.alternetsoft.com/t/is-it-possible-to-add-an-immediate-window-tab-to-debuggerpanelstabcontrol-where-python-repl-works/320 "2022-08-03T17:19:57Z")

</div>

DebuggerPanelsTabControl is nice. But it lacks Python REPL capability. I’m requesting to add an “Immediate Window” tab where the Python REPL is active on it and the user could use it as if it were a real Python command b…

---

## [Code completion words](https://forum.alternetsoft.com/t/code-completion-words/310)

<div class="topic-metadata">

**Author:** [@OtherGuru](https://forum.alternetsoft.com/u/OtherGuru)\
**Replies:** 3\
**Last updated:** [June 29, 2022, 3:33pm UTC](https://forum.alternetsoft.com/t/code-completion-words/310 "2022-06-29T15:33:24Z")

</div>

We need our users to write python code to extend our software. We are thinking of using the code editor functionality along with PythonParser as lexer. Our users will use some APIs that we will provide and use some keywo…

---

## [How to use full python version instead of EmbeddedPythonInstaller?](https://forum.alternetsoft.com/t/how-to-use-full-python-version-instead-of-embeddedpythoninstaller/290)

<div class="topic-metadata">

**Author:** [@audrius](https://forum.alternetsoft.com/u/audrius)\
**Replies:** 1\
**Last updated:** [February 26, 2022, 10:24am UTC](https://forum.alternetsoft.com/t/how-to-use-full-python-version-instead-of-embeddedpythoninstaller/290 "2022-02-26T10:24:48Z")

</div>

I see EmbeddedPythonInstaller in samples. This name suggests that it should be only used for the embedded python version. Can you provide a sample for the usage of the full python version which is installed on the system…

---

## [Announcement : AlterNET Studio 8.0 released](https://forum.alternetsoft.com/t/announcement-alternet-studio-8-0-released/285)

<div class="topic-metadata">

**Author:** [@dmitry.medvedev](https://forum.alternetsoft.com/u/dmitry.medvedev)\
**Replies:** 0\
**Last updated:** [January 27, 2022, 11:58am UTC](https://forum.alternetsoft.com/t/announcement-alternet-studio-8-0-released/285 "2022-01-27T11:58:53Z")

</div>

Hi, We have just released a new major version of AlterNET Studio. AlterNET Studio 8.0 is a major release focusing on Visual Studio 2022 and .NET 6.0 core support for all our component libraries. Main enhancements incl…

---

## [How to retrieve code line number and column number in python script code for sciptrun execution exception?](https://forum.alternetsoft.com/t/how-to-retrieve-code-line-number-and-column-number-in-python-script-code-for-sciptrun-execution-exception/272)

<div class="topic-metadata">

**Author:** [@audrius](https://forum.alternetsoft.com/u/audrius)\
**Replies:** 1\
**Last updated:** [December 10, 2021, 8:57am UTC](https://forum.alternetsoft.com/t/how-to-retrieve-code-line-number-and-column-number-in-python-script-code-for-sciptrun-execution-exception/272 "2021-12-10T08:57:34Z")

</div>

It would even be nice to retrieve “responsible code text”; As several instructions can be in one line separated by “;” Now I get smth like this: Attempted to divide by zero. at Microsoft.Scripting.Utils.MathUtils.Flo…

---

## [How to abort IronPython script excecution](https://forum.alternetsoft.com/t/how-to-abort-ironpython-script-excecution/254)

<div class="topic-metadata">

**Author:** [@audrius](https://forum.alternetsoft.com/u/audrius)\
**Replies:** 9\
**Last updated:** [November 25, 2021, 8:30am UTC](https://forum.alternetsoft.com/t/how-to-abort-ironpython-script-excecution/254 "2021-11-25T08:30:47Z")

</div>

I did try scriptRunner.reset but it does not help. I cannot force users to use cancelation token correctly in script like in threaded sort sample. What is correct way to cancel script execution which is in progress. I a…

---

## [How to make work autocomplete with from MyModule import \*](https://forum.alternetsoft.com/t/how-to-make-work-autocomplete-with-from-mymodule-import/251)

<div class="topic-metadata">

**Author:** [@audrius](https://forum.alternetsoft.com/u/audrius)\
**Replies:** 3\
**Last updated:** [November 12, 2021, 7:59am UTC](https://forum.alternetsoft.com/t/how-to-make-work-autocomplete-with-from-mymodule-import/251 "2021-11-12T07:59:57Z")

</div>

I have a static class with only static methods. I would like that autocomplete would work to make like (from MyModule import \*) rather than import MyModule External python modules does not have autocomplete. I do f…

---

## [scriptRun.RunFunction does not trigger event ScriptExecuted](https://forum.alternetsoft.com/t/scriptrun-runfunction-does-not-trigger-event-scriptexecuted/253)

<div class="topic-metadata">

**Author:** [@audrius](https://forum.alternetsoft.com/u/audrius)\
**Replies:** 1\
**Last updated:** [November 10, 2021, 1:57pm UTC](https://forum.alternetsoft.com/t/scriptrun-runfunction-does-not-trigger-event-scriptexecuted/253 "2021-11-10T13:57:19Z")

</div>

Calling runfunction for python method triggers ScriptRunning but not ScriptExecuted. I believe this is bug as both events should be triggered.

---

## [Is there a way to increse startup script exceuction for python?](https://forum.alternetsoft.com/t/is-there-a-way-to-increse-startup-script-exceuction-for-python/252)

<div class="topic-metadata">

**Author:** [@audrius](https://forum.alternetsoft.com/u/audrius)\
**Replies:** 1\
**Last updated:** [November 9, 2021, 1:57am UTC](https://forum.alternetsoft.com/t/is-there-a-way-to-increse-startup-script-exceuction-for-python/252 "2021-11-09T01:57:18Z")

</div>

First I did “pip install arrow” on any existing iron python installation. (it is just sample lib for testing purpose) add them to script engine. scriptRun.ScriptSource.ModulesSearchPaths.Add(“C:\\IronPython 2.7\\Lib”); s…

---

## [Python LSP Find All References / Go To Definition](https://forum.alternetsoft.com/t/python-lsp-find-all-references-go-to-definition/221)

<div class="topic-metadata">

**Author:** [@swhaney](https://forum.alternetsoft.com/u/swhaney)\
**Replies:** 2\
**Last updated:** [May 17, 2021, 6:30am UTC](https://forum.alternetsoft.com/t/python-lsp-find-all-references-go-to-definition/221 "2021-05-17T06:30:58Z")

</div>

We are using the Python LSP parser and, if possible, would like to enable some more advanced features like Find All References and Go To Definition. Right now, we see these in a context menu, but they don’t do anything. …

[Next page](https://forum.alternetsoft.com/tag/python/7.md?match_all_tags=true&page=1&tags%5B%5D=python)
