Skip to content

Instantly share code, notes, and snippets.

View Carreau's full-sized avatar
:octocat:

M Bussonnier Carreau

:octocat:
View GitHub Profile
import requests
from rich import print
from bs4 import BeautifulSoup
import sys
def get_packages(url):
# Send a GET request to the webpage with a custom user agent
headers = {"User-Agent": "python/request/jupyter"}
response = requests.get(url, headers=headers, allow_redirects=True)
id: 'Oq55zKog'
title: 'Sphinx Survey Jan 30'
questions:
- title: 'Sphinx Usage Survey 2025'
type: statement
description: |
Sphinx Documentation User Survey 2025
Help the Sphinx community understand who is using Sphinx, how they are using it, and how well it supports the people using it. We will use this information to aid community discussion about improvements to Sphinx.
@Carreau
Carreau / kernel.js
Created December 13, 2012 20:09
A node.js kernel for IPython notebook. You can see the explanation of the ipynb rendered in http://nbviewer.ipython.org
zmq = require("zmq")
fs = require("fs")
var config = JSON.parse(fs.readFileSync(process.argv[2]))
var connexion = "tcp://"+config.ip+":"
var shell_conn = connexion+config.shell_port
var pub_conn = connexion+config.iopub_port
var hb_conn = connexion+config.hb_port
@Carreau
Carreau / numfocus_summit_2023.md
Last active March 14, 2024 08:51
NumFOCUS Summit 2023

NumFOCUS summit 2023

Two weeks ago from September 11th to 13th was NumFOCUS summit 2023. NumFOCUS is the US Based nonprofit that act as a financial entity for many Project of the Python ecosystem and more.

Every year, many project send a few representative to the NumFOCUS summit for a couple of days, and this year the summit was held near Amsterdam in the Netherland. As this was in Europe I was able to attend as one of representative

File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File ".../ipykernel_launcher.py", line 17, in <module>
app.launch_new_instance()
File ".../traitlets/config/application.py", line 1075, in launch_instance
app.start()
File ".../ipykernel/kernelapp.py", line 737, in start
self.io_loop.start()
File ".../tornado/platform/asyncio.py", line 215, in start
self.asyncio_loop.run_forever()
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from vispy.util.quaternion import Quaternion
from itertools import permutations
from scipy.spatial.transform import Rotation
from napari._vispy.utils.quaternion import (
_old_quaterion2euler as quaternion2euler,
)
import numpy as np
print('ok')
@Carreau
Carreau / autoipynb.js
Created April 3, 2013 20:54
autolink all ipynb link to nbviewer
url_root='http://nbviewer.ipython.org/';
url=null;
var transform_url = function(href){
if( href===undefined){return}
if (href.search(/^https?:\/\/nbviewer/) == 0 ){
console.log('case 1')
return null
} else if (href.search(/^https?:\/\/gist\.github\.com\/(?:\w+\/)?[a-f0-9]+$/) !== -1) {
console.log('case 2')
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.