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

Add notebook section to PyCharm guide #6567

Closed
cdeil opened this issue Mar 25, 2024 · 3 comments · Fixed by #6599
Closed

Add notebook section to PyCharm guide #6567

cdeil opened this issue Mar 25, 2024 · 3 comments · Fixed by #6599

Comments

@cdeil
Copy link
Contributor

cdeil commented Mar 25, 2024

@MarcSkovMadsen - thank you for adding this in #6525 !

https://holoviz-dev.github.io/panel/how_to/editor/pycharm_configure.html

When I try to use it from a notebook in PyCharm (with the EAP release of the pro version that can be freely installed) I get this error:

/Users/cdeil/anaconda3/envs/panel-tutorial/bin/python -m jupyter notebook --notebook-dir=/Users/cdeil/code/oss/panel --no-browser
Jupyter command jupyter-notebook not found.

I do have jupyterlab installed, but apparently I need a second package. Would be great to mention this in the docs, similar to the VSCode page that explains how to get notebooks to work.

Screenshot 2024-03-25 at 08 07 23 Screenshot 2024-03-25 at 08 16 11
@cdeil
Copy link
Contributor Author

cdeil commented Mar 25, 2024

With this it works. :-)

https://pypi.org/project/notebook/
https://anaconda.org/conda-forge/notebook

pip install notebook
conda install conda-forge::notebook

Since many years I only conda or pip install jupyterlab so for me this was surprising that I need the extra package.

Not sure what package exactly and where it should be recommended to install it?

@MarcSkovMadsen - Note that with the current docs neither the "jupyterlab" nor the "notebook" install is mentioned, so it's possible new users run into these install issues and if they don't know much about pip or conda or whick package to use they could get stuck.

https://holoviz-dev.github.io/panel/getting_started/installation.html
https://holoviz-dev.github.io/panel/tutorials/basic/index.html#prerequisites

Screenshot 2024-03-25 at 08 30 53

@MarcSkovMadsen
Copy link
Collaborator

MarcSkovMadsen commented Mar 25, 2024

That are great comments. I'm not a pycharm user my self (but 40% of colleagues are) so have to figure out how the notebook extension works?

@cdeil
Copy link
Contributor Author

cdeil commented Mar 25, 2024

My understanding is that notebooks in PyCharm are built-in feature (not an extension) and only available in the Professional version. Same here - about half of the colleagues use PyCharm Pro.

I wanted to try out the PyCharm Pro profiling features to understand what's going on with sessions, threads, gc for #6502 but not sure if I'll find the time to dig in this week.

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

Successfully merging a pull request may close this issue.

2 participants