Trusting a notebook is not working in PyCharm - python

I want to run a Jupyter notebook in PyCharm but on cells that are executing javascript, I get the message, that the notebook is not trusted.
When I click the "Trusted" checkbox, the arrow appears for a second and then disappears again. The notebook stays untrusted. Also using the command-line interface for Jupyter with
jupyter trust notebook.ipynb
doesn't work.
When I open the notebook on the browser with the same kernel running, it works just fine.
I also want to add that I have three projects open at the same time. When I just open the project, which is containing the notebook, I can click the "Trusted" checkbox and it will stay checked, but still, the javascript cells will not execute.
Maybe that's a bug, but probably I messed up some settings? Can you help me find out, which settings I can change and if there are other options to get the notebook trusted within the IDE?
Have a nice day!

I had the same problem when I moved the notebook's directory. What solved it for me in PyCharm was to copy and paste the notebook's content into a new file.

I came across this issue when specifying %matplotlib notebook.
Changing this to %matplotlib inline got the plotting to work.
Not fully understanding the issue or how this solves it but it is sufficient for my application.

Related

output text in jupyter notebook

I'm working with vscode in jupyter notebooks and when executing a code the text suddenly looks out of range, before it looked normal, I tried reinstalling vscode.
This is the view I have from the github repository, before it looked like this in vscode:
Before
in vscode suddenly it started to look like this:
After
before they told me that the font is the problem and that I should edit the json of the configuration, however, the json is only with the theme for vscode since I have uninstalled everything related and I have reinstalled it, and it still continues the same
It's related to VSCode, you can wait for the update of VSCode. You can refer to this page for more details.
Your font has changed from fixed width to variable width. This is something you will find in settings.json but should change via VSCode's settings page. Search for "font" and select an appropriate option - perhaps Courier.

Jupiter notebook stuck

I am trying to open a Jupyter notebook I have done, but since when I uploaded a huge dataframe it is stuck like this:
I don't know what to do actually. I have tried to ctrl+C (force quit) jupyter and restart it again several times. I have an important code there. Is there a way to recover it or open the page? I know it's not very much info. This notebook is stored in an anaconda environment and for the moment I did nothing but trying to open it....it looks like jupyter is very slow down.
EDIT: it looks like it is very memory expensive...
Thank you,
Federico
Jupyter notebooks are actually JSON files, so you can open them with plain text editors. Presumably, your browser is having a hard time rendering the notebook - opening it in a text editor won't render anything at all, so you should be able to read the code.
This will allow you to back up the code of the notebook.

Jupyter Notebook cannot open in Ubuntu WSL2

Error Image
I keep trying to use the jupyter notebook command and this error pops up. Could someone help?
Don't worry about it, you can just paste one of the displayed links in your browser and you'll be able to access it without issue.
The error only means powershell couldn't find the file that is used to automatically opens the notebook.

Make Jupyter Notebook clickable

I did develop an application for several users on windows, without internet access using python and Jupyter Notebook as a graphical interface.
The application intend to process some data, they just have to copy paste the path to their datafile and run through different step.
As a user they just want to double click somewhere to open it. I may not fully understand Jupyter Notebook but I would like to find a simple way to make the notebook clickable ...
Could you help me ?
Thx
Have you looked at nteract? It was a suggestion in a similar question here, that was linked from a question with a similar title as yours, but referenced the previous version of the tech that is now Jupyter notebook.

In Jupyter notebook, how does one revert/refresh to the original notebook before any changes were made?

I'm forced to use jupyter notebook for a class. Somehow a code block got turned into text and now it won't run this cell. I want to revert the notebook to the original (the notebook provided by course without my programs added in) before I made any changes to it. How does one do this?
The only thing I could find was this at jupyter refresh
Refresh your notebook
1. Rename your existing Jupyter Notebook within the individual notebook view
2. In the notebook view, add “?forceRefresh=true” to the end of your notebook URL
3. Reload the screen
4. You will be directed to your home Learner Workspace where you’ll see both old and new Notebook files.
5. Your Notebook lesson item will now launch to the fresh notebook.
But I'm unsure what the first two steps mean. I tried renaming and then adding “?forceRefresh=true” at the end, but that didn't help. Perhaps someone could advise? Thanks

Categories