Download the desired Python version at this address: https://www.python.org/downloads/source/
Move the downloaded archive to a safe location as you may need to recompile Python several times and unzip the file using:
Download the desired Python version at this address: https://www.python.org/downloads/source/
Move the downloaded archive to a safe location as you may need to recompile Python several times and unzip the file using:
import matplotlib.pyplot as plt | |
import networkx as nx | |
import numpy as np | |
def plot_neuron_level_nid(model): | |
""" | |
Plot a neuron-level Neural Interpretation Diagram (NID) for a TensorFlow model, | |
including biases. | |
Parameters: |
__version__ = '1.0' | |
from kivy.app import App | |
from kivy.uix.boxlayout import BoxLayout | |
from kivy.uix.label import Label | |
from kivy.clock import Clock | |
# Android NFC-specific imports | |
from jnius import autoclass, cast |
This document aims to explain how to create adaptive icons for Android applications developed with Kivy and compiled with Buildozer.
The configuration file buildozer.spec
allows you to specify an icon to use for your application by editing the following portion of the file :
# (str) Icon of the application
def create_interpolation_function(x_ref: list[float], y_ref: list[float]): | |
""" | |
Create an interpolation function with the given points. | |
Parameters | |
---------- | |
x_ref : list[float] | |
X values. | |
y_ref : list[float] |
import requests | |
from azure.identity import InteractiveBrowserCredential | |
# Define your Azure AD client ID | |
client_id = ... | |
# Define the Microsoft Graph API scope | |
scope = ["User.Read"] | |
# Create the InteractiveBrowserCredential instance |
from azure.identity import UsernamePasswordCredential | |
credential = UsernamePasswordCredential( | |
client_id="client_id_found_in_azure", | |
username="email", | |
password="password", | |
) | |
print(credential.get_token("https://graph.microsoft.com/.default")) |
def levenshtein(chaine1, chaine2): | |
n = len(chaine1) | |
m = len(chaine2) | |
d = [[0 for j in range(m + 1)] for i in range(n + 1)] | |
for i in range(0, n + 1): | |
d[i][0] = i | |
for j in range(0, m + 1): | |
d[0][j] = j | |
for i in range(0, n): | |
for j in range(0, m): |
import os | |
import tkinter as tk | |
from tkinter import ttk | |
class ScrollableFrame(ttk.Frame): | |
def __init__(self, container, *args, **kwargs): | |
super().__init__(container, *args, **kwargs) | |
canvas = tk.Canvas(self, takefocus=0, highlightthickness=0) | |
self.canvas = canvas | |
scrollbar = ttk.Scrollbar(self, orient="vertical", command=canvas.yview) |