Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blue changes %autoreload 2 in jupyter ntoebooks to random hex #99

Open
Vulwsztyn opened this issue May 31, 2023 · 0 comments
Open

blue changes %autoreload 2 in jupyter ntoebooks to random hex #99

Vulwsztyn opened this issue May 31, 2023 · 0 comments

Comments

@Vulwsztyn
Copy link

Vulwsztyn commented May 31, 2023

How to reproduce:

  1. create a jupyter notebook file with content:
{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "%load_ext autoreload\n",
    "%autoreload 2"
   ]
  }
 ],
 "metadata": {
  "language_info": {
   "name": "python"
  },
  "orig_nbformat": 4
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
  1. have blue and black[jupyter] installed,
  2. run blue

Most env agnostic way would be:
2. run docker container run -it -v pwd:/app -w /app pyfound/black bash
3. (inside the docker) run pip install black[jupyter]; pip install blue
4. (inside the docker) run blue .

Current behaviour:
The

%load_ext autoreload
%autoreload 2

in jupyter notebook gets formatted as:

""%load_ext autoreload""
'b3d554e307.'

Expected behaviour:
it is left unchanged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant