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

Allow panel serve of notebook that starts with magics #6786

Open
droumis opened this issue Apr 23, 2024 · 0 comments
Open

Allow panel serve of notebook that starts with magics #6786

droumis opened this issue Apr 23, 2024 · 0 comments
Labels
type: bug Something isn't correct or isn't working
Milestone

Comments

@droumis
Copy link
Member

droumis commented Apr 23, 2024

Panel won't serve a notebook that starts with something like:

%load_ext autoreload
%autoreload 2

error:

Invalid syntax in '<file>.ipynb' on line 4:
   "cell_type": "code",

Traceback (most recent call last):
  File "<...>/bokeh/application/handlers/code_runner.py", line 104, in __init__
    nodes = ast.parse(source, os.fspath(path))
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<...lib>/python3.12/ast.py", line 52, in parse
    return compile(source, filename, mode, flags,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<...file>.ipynb", line 4
    "cell_type": "code",
SyntaxError: invalid syntax
@droumis droumis added the TRIAGE Default label for untriaged issues label Apr 23, 2024
@philippjfr philippjfr added type: bug Something isn't correct or isn't working and removed TRIAGE Default label for untriaged issues labels Apr 24, 2024
@philippjfr philippjfr added this to the v1.4.3 milestone Apr 24, 2024
@philippjfr philippjfr modified the milestones: v1.4.3, v1.4.4 May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't correct or isn't working
Projects
None yet
Development

No branches or pull requests

2 participants