Skip to main content

All Questions

Tagged with
0 votes
0 answers
41 views

Jupyter Notebook interaction

Goal: Enable real-time interaction with a Jupyter Notebook by sharing the same kernel between Python code (CLI/script) and the Jupyter Notebook UI. Use case: Allow a script to interact with variables ...
Morpheus's user avatar
1 vote
1 answer
52 views

Interactive Ploting with Matplotlib

When I adjust the position slider, for example pdfReader X,Y,Z, the point(pdfReader) in the plot won't be updated accordingly. Instead, I would see <Figure size 640x480 with 0 Axes> in my ...
user22773661's user avatar
0 votes
1 answer
97 views

interaction failed in discord.py

my buttons are working fine but its still giving me "interaction failed issue" class StartButtons(discord.ui.View): def __init__(self, user_id, cog, channel): super().__init__() ...
worker's user avatar
  • 11
1 vote
1 answer
216 views

High dot density gives negative interaction area in PyMOL

I am working out the area of interaction between a protein and ligand (in this example, PDB ID = 1r0r), and am experimenting with different dot densities. The file I am using has been fixed with ...
amy-elouise's user avatar
0 votes
1 answer
1k views

Discord option lists

So, I've recently started using interactions / application commands in discord.py. I cannot figure out how to make it so when a user uses a command it will show a list of options, for fun lets just ...
Matthew's user avatar
  • 11
0 votes
1 answer
731 views

Discord.PY Button UI interaction fails after restart

So i've been trying to get this discord button to work. And it does, kinda... The button works as it's supposed to. But after a restart, the button looses all functionality and says "interaction ...
Mizuka_owo's user avatar
0 votes
1 answer
268 views

How do I extract meaningful simple rules from this classification problem?

I have a problem of this type: A customer creates an order by hand, which might be erroneous. Submitting a wrong order is costly, which is why we try to reduce the error rate. I need to detect what ...
Dudelstein's user avatar
0 votes
1 answer
57 views

Interact with Pythons' Calendar module

Basically, by using text_cal = calendar.TextCalendar(firstweekday = 0) # printing formatmonth cal = text_cal.formatmonth(correct_year, correct_month, 5) print(cal) which produces this ...
FrogFlex's user avatar
2 votes
2 answers
5k views

discord.py NotFound: 404 Not Found (error code: 10062): Unknown interaction

@bot.tree.command(name="clear", description="admin only", guild=discord.Object(guildid)) async def clear(interaction: discord.Interaction, amount : int = None): if not ...
Heeryun Cho's user avatar
0 votes
1 answer
463 views

Execute Python Script (spyder) from Excel using VBA

I have a problem regarding the question's title: A quick intro to my situation: I'm using python within spyder and my Code (multiple hundred lines) includes a bloomberg-python api. Because I'm using ...
Karush Kuhn Tucker's user avatar
0 votes
0 answers
33 views

I want to do OLS fitting on this model using python

a is {0, 1} binary variable, X dimension is 3 (first column is all-ones vector, the number of predictor is 2) If write the expression differently, it becomes like this y = Xb0 + aX(b1-b0) + e = b00 + ...
imsh's user avatar
  • 1
0 votes
1 answer
2k views

get user mentions from Discord.py 2.0 interactions

Using discord.py 2.0's new slash commands, how do I get mentions from discord.Interaction? tree = discord.app_commands.CommandTree(client) @tree.command(name="test", description="test&...
Bob's user avatar
  • 113
-1 votes
1 answer
1k views

How to do slash_commands in cogs

I'm trying to implement slash_commands in my python for discord, didn't had any trouble for usual prefix command but this seems tricky and I don't know what to do? This is my code: my cog: import ...
Miroslav Basa's user avatar
2 votes
1 answer
787 views

Plot don't refresh when slider updated matplotlib

I can't figure out why the plot don't refresh when the slider is updated. I'm using Jupiter notebook and I choose the backend with 'nbAgg' parameter. Initialization code : import numpy as np import ...
Idr SEK's user avatar
  • 33
0 votes
1 answer
848 views

How can I make the program wait for an interaction in nextcord?

I would like when a person clicks the button, the code starts from if player1! = player2. But once bet 1000 is written the code is all executed and does not wait for the button to be pressed to ...
Galoka's user avatar
  • 11

15 30 50 per page
1
2 3 4 5